Mercurial > vim
comparison src/testdir/test_mapping.vim @ 15687:cb501b3c9fb5 v8.1.0851
patch 8.1.0851: feedkeys() with "L" does not work properly
commit https://github.com/vim/vim/commit/8d4ce56a19ed14d13332f94ad592fff2d9a715d5
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 30 22:01:40 2019 +0100
patch 8.1.0851: feedkeys() with "L" does not work properly
Problem: feedkeys() with "L" does not work properly.
Solution: Do not set typebuf_was_filled when using "L". (Ozaki Kiichi,
closes #3885)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 30 Jan 2019 22:15:07 +0100 |
parents | 8513d9864f7e |
children | 5c5d211bd5a8 |
comparison
equal
deleted
inserted
replaced
15686:5faaf013acd4 | 15687:cb501b3c9fb5 |
---|---|
213 nnoremap \12 :let g:val = 1<CR> | 213 nnoremap \12 :let g:val = 1<CR> |
214 nnoremap \123 :let g:val = 2<CR> | 214 nnoremap \123 :let g:val = 2<CR> |
215 set timeout timeoutlen=1000 | 215 set timeout timeoutlen=1000 |
216 | 216 |
217 func ExitCb(job, status) | 217 func ExitCb(job, status) |
218 let g:timer = timer_start(1, {_ -> feedkeys("3\<Esc>", 't')}) | 218 let g:timer = timer_start(1, {-> feedkeys("3\<Esc>", 't')}) |
219 endfunc | 219 endfunc |
220 | 220 |
221 call job_start([&shell, &shellcmdflag, 'echo'], {'exit_cb': 'ExitCb'}) | 221 call job_start([&shell, &shellcmdflag, 'echo'], {'exit_cb': 'ExitCb'}) |
222 call feedkeys('\12', 'xt!') | 222 call feedkeys('\12', 'xt!') |
223 call assert_equal(2, g:val) | 223 call assert_equal(2, g:val) |