Mercurial > vim
diff src/testdir/test_registers.vim @ 28359:390dfc3e409b v8.2.4705
patch 8.2.4705: jump list marker disappears
Commit: https://github.com/vim/vim/commit/6d4e725a3447af6f69305fdc9f1e1ff8d82e3863
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu Apr 7 13:58:04 2022 +0100
patch 8.2.4705: jump list marker disappears
Problem: Jump list marker disappears.
Solution: Reset reg_executing later. (closes https://github.com/vim/vim/issues/10111, closes https://github.com/vim/vim/issues/10100)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 07 Apr 2022 15:00:05 +0200 |
parents | 6ecfb8d99353 |
children | a0cd2b7a78ef |
line wrap: on
line diff
--- a/src/testdir/test_registers.vim +++ b/src/testdir/test_registers.vim @@ -759,6 +759,24 @@ 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 + " Make sure that y_append is correctly reset " and the previous register is working as expected func Test_register_y_append_reset()