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
{
LPTOOLTIPTEXT lpttt = (LPTOOLTIPTEXT)notification;
//Joce's fix
lpttt->hinst = NULL;
POINT p;

View File

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