From d17c303665b6d359e99ec866a29948ba10341f95 Mon Sep 17 00:00:00 2001 From: Don HO Date: Sun, 8 Nov 2020 03:34:45 +0100 Subject: [PATCH] Fix "SCI_NEWLINE" inside a macro not working issue Fix #5571 --- PowerEditor/src/NppNotification.cpp | 2 -- PowerEditor/src/WinControls/shortcut/shortcut.cpp | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/PowerEditor/src/NppNotification.cpp b/PowerEditor/src/NppNotification.cpp index 6de23f9a..412a62df 100644 --- a/PowerEditor/src/NppNotification.cpp +++ b/PowerEditor/src/NppNotification.cpp @@ -911,8 +911,6 @@ BOOL Notepad_plus::notify(SCNotification *notification) try { LPTOOLTIPTEXT lpttt = (LPTOOLTIPTEXT)notification; - - //Joce's fix lpttt->hinst = NULL; POINT p; diff --git a/PowerEditor/src/WinControls/shortcut/shortcut.cpp b/PowerEditor/src/WinControls/shortcut/shortcut.cpp index 1511fad4..7e5ab579 100644 --- a/PowerEditor/src/WinControls/shortcut/shortcut.cpp +++ b/PowerEditor/src/WinControls/shortcut/shortcut.cpp @@ -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; }