diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-04-07 21:13:09 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-07 21:42:07 +0800 |
| commit | 2a574f7aaaf5cd0803faa9e4337bf3e21e8b8d2a (patch) | |
| tree | 25196ecabe19a4d834e79a48ea54115c8d4579f1 /src/nvim/testdir | |
| parent | dc9e436986bec15b027c2a8d78782f514c046a8b (diff) | |
| download | rneovim-2a574f7aaaf5cd0803faa9e4337bf3e21e8b8d2a.tar.gz rneovim-2a574f7aaaf5cd0803faa9e4337bf3e21e8b8d2a.tar.bz2 rneovim-2a574f7aaaf5cd0803faa9e4337bf3e21e8b8d2a.zip | |
fix(input): fix clearing of reg_executing
vim-patch:8.2.4705
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_registers.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_registers.vim b/src/nvim/testdir/test_registers.vim index f78b748d71..c623edd5a1 100644 --- a/src/nvim/testdir/test_registers.vim +++ b/src/nvim/testdir/test_registers.vim @@ -690,5 +690,23 @@ func Test_record_in_select_mode() bwipe! endfunc +func Test_end_reg_executing() + nnoremap s <Nop> + let @a = 's' + call feedkeys("@aqaq\<Esc>", 'tx') + call assert_equal('', @a) + call assert_equal('', getline(1)) + + call setline(1, 'aaa') + nnoremap s qa + let @a = 'fa' + call feedkeys("@asq\<Esc>", 'tx') + call assert_equal('', @a) + call assert_equal('aaa', getline(1)) + + nunmap s + bwipe! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |