diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-07-16 21:39:05 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-16 21:55:27 +0800 |
| commit | 780edfc0eb1293f5813d904ad61fc65bbbb41784 (patch) | |
| tree | 7bb4d31d5cd799d8158360722eb6cb989ff14633 /src/nvim/testdir/test_undo.vim | |
| parent | bc73795a5858129a84d510f682c9dcb17aa1813a (diff) | |
| download | rneovim-780edfc0eb1293f5813d904ad61fc65bbbb41784.tar.gz rneovim-780edfc0eb1293f5813d904ad61fc65bbbb41784.tar.bz2 rneovim-780edfc0eb1293f5813d904ad61fc65bbbb41784.zip | |
vim-patch:8.2.2608: character input not fully tested
Problem: Character input not fully tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#7963)
https://github.com/vim/vim/commit/f4fcedc59d4cc5ae6b5270a933e8377030283c1c
Cherry-pick related changes from patches 8.2.{0433,0866}.
Diffstat (limited to 'src/nvim/testdir/test_undo.vim')
| -rw-r--r-- | src/nvim/testdir/test_undo.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_undo.vim b/src/nvim/testdir/test_undo.vim index da8bf12318..efc39fb3f5 100644 --- a/src/nvim/testdir/test_undo.vim +++ b/src/nvim/testdir/test_undo.vim @@ -735,6 +735,20 @@ func Test_undofile_cryptmethod_blowfish2() set undofile& undolevels& cryptmethod& endfunc +" Test for redoing with incrementing numbered registers +func Test_redo_repeat_numbered_register() + new + for [i, v] in [[1, 'one'], [2, 'two'], [3, 'three'], + \ [4, 'four'], [5, 'five'], [6, 'six'], + \ [7, 'seven'], [8, 'eight'], [9, 'nine']] + exe 'let @' .. i .. '="' .. v .. '\n"' + endfor + call feedkeys('"1p.........', 'xt') + call assert_equal(['', 'one', 'two', 'three', 'four', 'five', 'six', + \ 'seven', 'eight', 'nine', 'nine'], getline(1, '$')) + bwipe! +endfunc + func Test_undo_mark() new " The undo is applied to the only line. |