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
372 stars 52 forks source link

Edit Mode: Undo issue #356

Open ProgerXP opened 3 years ago

ProgerXP commented 3 years ago

Document:

aa|
aa
  1. Ctrl+Tab
  2. Type anything
  3. Ctrl+Shift+X
  4. Ctrl+Z

Expected: step 3 commits Edit Mode and then does Line Cut. As a result, Undo has two positions and step 4 reverts to aazz\naazz (if zz was typed in step 2).

Actual: looks like both operations are combined into one Undo position and result is aa\naa.

This is probably a larger issue than with Line Cut alone. Please check if Edit Mode properly creates 2 Undo positions even if it's committed indirectly (not by Enter).