ProgerXP / Notepad2e

Word highlighting, simultaneous editing, split views, math evaluation, un/grep, comment reformatting, UAC elevation, complete regexps (PCRE), Lua lexers, DPI awareness and more (XP+)
Other
375 stars 52 forks source link

Extremely slow Replace when changing line count #363

Closed ProgerXP closed 1 year ago

ProgerXP commented 3 years ago

For example, take a document with 2000 lines in C format (line\nline\nline) and Replace from \\n to \n in either Regexp or Transform backslashes mode. This will take up to 10 seconds depending on the document, Word Wrap state and probably other parameters. In Notepad++ this takes half a second at most.

This might be because window state is updated during the replace (I see scrollbars changing).

Related issue: after you convert \\n to line breaks, do Ctrl+Z - it will again take many seconds. In constrast, Ctrl+Shift+Z is instant.

cshnik commented 1 year ago

Fixed.

ProgerXP commented 1 year ago

Appears to be even faster than Notepad++ in this particular case.