diff options
author | erw7 <erw7.github@gmail.com> | 2020-09-23 10:33:18 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2020-10-02 11:41:30 +0900 |
commit | 620c8fdfe91a382982fafaa376acd722fe0df051 (patch) | |
tree | b648771efa8f34039ff45361f6fe6f404bc126af /test/functional/ui/inccommand_spec.lua | |
parent | 4f8d98e583beb4c1abd5d57b9898548396633030 (diff) | |
download | rneovim-620c8fdfe91a382982fafaa376acd722fe0df051.tar.gz rneovim-620c8fdfe91a382982fafaa376acd722fe0df051.tar.bz2 rneovim-620c8fdfe91a382982fafaa376acd722fe0df051.zip |
extmark: fix decoration ploblems with extmark
54ce101 changed the way undo entries are created when adding decorations.
This creates all sorts of problems.This change fixes the problem by
reverting to the previous behavior.
Diffstat (limited to 'test/functional/ui/inccommand_spec.lua')
-rw-r--r-- | test/functional/ui/inccommand_spec.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/ui/inccommand_spec.lua b/test/functional/ui/inccommand_spec.lua index 74e85212c8..16c5477ee4 100644 --- a/test/functional/ui/inccommand_spec.lua +++ b/test/functional/ui/inccommand_spec.lua @@ -2750,6 +2750,26 @@ it(':substitute with inccommand, timer-induced :redraw #9777', function() ]]) end) +it(":substitute doesn't crash with inccommand, if undo is empty #12932", function() + local screen = Screen.new(10,5) + clear() + command('set undolevels=-1') + common_setup(screen, 'split', 'test') + feed(':%s/test') + sleep(100) + feed('/') + sleep(100) + feed('f') + screen:expect([[ + {12:f} | + {15:~ }| + {15:~ }| + {15:~ }| + :%s/test/f^ | + ]]) + assert_alive() +end) + it('long :%s/ with inccommand does not collapse cmdline', function() local screen = Screen.new(10,5) clear() |