-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add test to repro the issue. * Prevent undo from leaving behind added end text. * Use --headless in tests to prevent UI open-close flickering when running many tests.
- Loading branch information
Showing
4 changed files
with
88 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
config({ | ||
extension: "rb", | ||
command: 'ExecuteCRTwiceAndUndo', | ||
overrides: <<~INIT_LUA | ||
vim.opt.expandtab = true | ||
vim.opt.shiftwidth = 2 | ||
INIT_LUA | ||
}) | ||
|
||
test "ruby, undo, clean undo-block after multiple <CR>s before end of file", <<~END | ||
-def foo█ | ||
- | ||
+def foo | ||
+ | ||
END | ||
|
||
test "ruby, undo, clean undo-block after multiple <CR>s at end of file", <<~END | ||
- | ||
-def foo█ | ||
+ | ||
+def foo | ||
END | ||
|
||
config({ | ||
extension: "lua", | ||
command: 'ExecuteCRTwiceAndUndo', | ||
overrides: <<~INIT_LUA | ||
vim.opt.expandtab = true | ||
vim.opt.shiftwidth = 2 | ||
INIT_LUA | ||
}) | ||
|
||
test "lua, undo, clean undo-block after multiple <CR>s before end of file", <<~END | ||
-function foo()█ | ||
- | ||
+function foo() | ||
+ | ||
END | ||
|
||
test "lua, undo, clean undo-block after multiple <CR>s at end of file", <<~END | ||
- | ||
-function foo()█ | ||
+ | ||
+function foo() | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters