Mercurial > vim
diff src/testdir/test_registers.vim @ 34229:6be721794e1f v9.1.0060
patch 9.1.0060: Recorded register cannot be translated using keytrans()
Commit: https://github.com/vim/vim/commit/bf321806bf44d59f108fd7e5a0eaead04682701d
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun Jan 28 19:03:00 2024 +0100
patch 9.1.0060: Recorded register cannot be translated using keytrans()
Problem: Recorded register cannot be translated using keytrans() when
it involves character search (iddqd505)
Solution: Record a K_IGNORE instead of a K_NOP (zeertzjq)
related: #13916
closes: #13925
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 28 Jan 2024 19:15:03 +0100 |
parents | 099e0a527665 |
children | f8f45612de4e |
line wrap: on
line diff
--- a/src/testdir/test_registers.vim +++ b/src/testdir/test_registers.vim @@ -868,6 +868,8 @@ func Test_replay_charsearch_omap() call timer_start(10, {-> feedkeys(",bar\<Esc>q", 't')}) call feedkeys('qrct[', 'xt!') call assert_equal(',bar[blah]', getline(1)) + call assert_equal("ct[\<Ignore>,bar\<Esc>", @r) + call assert_equal('ct[<Ignore>,bar<Esc>', keytrans(@r)) undo call assert_equal('foo[blah]', getline(1)) call feedkeys('@r', 'xt!')