Mercurial > vim
comparison src/testdir/test_mapping.vim @ 29350:8a822186f1ab v9.0.0018
patch 9.0.0018: going over the end of the typahead
Commit: https://github.com/vim/vim/commit/27efc62f5d86afcb2ecb7565587fe8dea4b036fe
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 1 16:35:45 2022 +0100
patch 9.0.0018: going over the end of the typahead
Problem: Going over the end of the typahead.
Solution: Put a NUL after the typeahead.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 01 Jul 2022 17:45:02 +0200 |
parents | ae39554ad2ee |
children | 539fb427124d |
comparison
equal
deleted
inserted
replaced
29349:40302fa846fb | 29350:8a822186f1ab |
---|---|
1713 " clean up | 1713 " clean up |
1714 call StopVimInTerminal(buf) | 1714 call StopVimInTerminal(buf) |
1715 call delete('Xtest_map_after_timed_out_nop') | 1715 call delete('Xtest_map_after_timed_out_nop') |
1716 endfunc | 1716 endfunc |
1717 | 1717 |
1718 func Test_using_past_typeahead() | |
1719 nnoremap :00 0 | |
1720 exe "norm :set \x80\xfb0=0\<CR>" | |
1721 exe "sil norm :0\x0f\<C-U>\<CR>" | |
1722 | |
1723 exe "norm :set \x80\xfb0=\<CR>" | |
1724 nunmap :00 | |
1725 endfunc | |
1726 | |
1727 | |
1718 " vim: shiftwidth=2 sts=2 expandtab | 1728 " vim: shiftwidth=2 sts=2 expandtab |