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) {