From 0088f4d544250d07b79c71df5b894c1653ab1b33 Mon Sep 17 00:00:00 2001 From: Thomas Knoefel Date: Sat, 2 Dec 2023 14:34:35 +0100 Subject: [PATCH] deleted Workaround and highlightColumnsInLine() in updateDelimitersInDocument() --- src/MultiReplacePanel.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/MultiReplacePanel.cpp b/src/MultiReplacePanel.cpp index db58924..e69124b 100644 --- a/src/MultiReplacePanel.cpp +++ b/src/MultiReplacePanel.cpp @@ -3148,6 +3148,7 @@ void MultiReplace::processLogForDelimiters() } } + // Apply the saved "Modify" entries to the original delimiter list for (const auto& modifyLogEntry : modifyLogEntries) { if (modifyLogEntry.lineNumber != -1) { @@ -3160,14 +3161,6 @@ 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; @@ -3221,11 +3214,6 @@ void MultiReplace::updateDelimitersInDocument(SIZE_T lineNumber, ChangeType chan // Re-analyze the line to find delimiters findDelimitersInLine(lineNumber); - // Update the highlight if necessary - if (isColumnHighlighted) { - highlightColumnsInLine(lineNumber); - } - // Only adjust following lines if not at the last line if (lineNumber < lineDelimiterPositions.size() - 1) { // Calculate the difference to the next line start position (considering EOL) @@ -3255,6 +3243,7 @@ void MultiReplace::updateDelimitersInDocument(SIZE_T lineNumber, ChangeType chan default: break; } + } void MultiReplace::handleDelimiterPositions(DelimiterOperation operation) {