This website requires JavaScript.
Explore
Help
Sign In
xenia
/
kakoune
Watch
1
Star
0
Fork
0
You've already forked kakoune
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
fb77f11351
kakoune
/
test
/
normal
/
selection-undo
/
windisplay-hook
/
cmd
2 lines
1 B
Raw
Normal View
History
Unescape
Escape
Tweak selection-undo interaction with WinDisplay hooks Each selection undo operation is surrounded by pair of begin_edition()/end_edition() calls. The original reason for adding these was that in one of my preliminary versions, a WinDisplay hook could break an undo chain, even if the hook did not affect selections at all. This has since been fixed. By surrounding the undo with begin_edition()/end_edition(), try to ensure that any selection modification that happens in a WinDisplay hook would not break the undo chain. Essentially this means that, after using <c-h> to undo a buffer change, this was meant to make sure that <c-k> could redo that buffer change. However, it turns out this actually doesn't work. The attached test case triggers an assertion. As described in the first paragraph, the only real-world motivation for this is gone, so let's simplify the behavior. The assertion fix means that we can test the next commit better.
2022-12-22 18:09:45 +01:00
Reference in New Issue
Copy Permalink
Mastodon