From f6d1c4f8c126fddf719101bcf5f7fde68876972b Mon Sep 17 00:00:00 2001 From: Thomas Knoefel Date: Sat, 2 Dec 2023 15:42:56 +0100 Subject: [PATCH] added Workaround for Column Highligting --- src/MultiReplacePanel.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/MultiReplacePanel.cpp b/src/MultiReplacePanel.cpp index b3e394f..c0c8efc 100644 --- a/src/MultiReplacePanel.cpp +++ b/src/MultiReplacePanel.cpp @@ -3147,6 +3147,14 @@ void MultiReplace::processLogForDelimiters() } } + // Workaround: Highlight last line to fix N++ bug causing loss of styling on last character whwn modification in any other line + if (isColumnHighlighted) { + LRESULT lastLine = send(SCI_GETLINECOUNT, 0, 0) - 1; + if (lastLine >= 0) { + highlightColumnsInLine(lastLine); + } + } + // Clear Log queue logChanges.clear(); textModified = false;