mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
Fix a bug in command "Remove Consecutive Duplicate Lines"
...while the last line's prefix is the content of its previous line. Fix #5462
This commit is contained in:
parent
198cf90c16
commit
0467b7d6cd
@ -1414,7 +1414,7 @@ void Notepad_plus::removeDuplicateLines()
|
||||
_findReplaceDlg.processAll(ProcessReplaceAll, &env, true);
|
||||
|
||||
// remove the last line if it's a duplicate line.
|
||||
env._str2Search = TEXT("^(.+)\\r?\\n(\\1)");
|
||||
env._str2Search = TEXT("^(.+)\\r?\\n(\\1)$");
|
||||
env._str4Replace = TEXT("\\1");
|
||||
env._searchType = FindRegex;
|
||||
_findReplaceDlg.processAll(ProcessReplaceAll, &env, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user