Fix "SCI_NEWLINE" inside a macro not working issue

Fix #5571
This commit is contained in:
Don HO 2020-11-08 03:34:45 +01:00
parent d80816f930
commit d17c303665
2 changed files with 2 additions and 5 deletions

View File

@ -911,8 +911,6 @@ BOOL Notepad_plus::notify(SCNotification *notification)
try try
{ {
LPTOOLTIPTEXT lpttt = (LPTOOLTIPTEXT)notification; LPTOOLTIPTEXT lpttt = (LPTOOLTIPTEXT)notification;
//Joce's fix
lpttt->hinst = NULL; lpttt->hinst = NULL;
POINT p; POINT p;

View File

@ -812,6 +812,7 @@ bool recordedMacroStep::isMacroable() const
case SCI_SCROLLTOEND: case SCI_SCROLLTOEND:
case SCI_SETVIRTUALSPACEOPTIONS: case SCI_SETVIRTUALSPACEOPTIONS:
case SCI_SETCARETLINEBACKALPHA: case SCI_SETCARETLINEBACKALPHA:
case SCI_NEWLINE:
{ {
if (_macroType == mtUseLParameter) if (_macroType == mtUseLParameter)
return true; return true;
@ -819,9 +820,7 @@ bool recordedMacroStep::isMacroable() const
return false; return false;
} }
// Filter out all others like display changes. Also, newlines are redundant // Filter out all others like display changes.
// with char insert messages.
case SCI_NEWLINE:
default: default:
return false; return false;
} }