Mercurial > vim
comparison src/testdir/test_termcodes.vim @ 28627:da77eb586899 v8.2.4837
patch 8.2.4837: modifiers not simplified when timed out
Commit: https://github.com/vim/vim/commit/68a573ce2b996602a86b14d9b258ebb8c657604f
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu Apr 28 14:10:01 2022 +0100
patch 8.2.4837: modifiers not simplified when timed out
Problem: Modifiers not simplified when timed out or using feedkeys() with
'n" flag.
Solution: Adjust how mapped flag and timeout are used. (closes #10305)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 28 Apr 2022 15:15:03 +0200 |
parents | daad4c7b39be |
children | 5da38c4ffe92 |
comparison
equal
deleted
inserted
replaced
28626:46322b66ebb6 | 28627:da77eb586899 |
---|---|
2442 call feedkeys("ifoo\<Esc>A\<*C-@>x", 'xt') | 2442 call feedkeys("ifoo\<Esc>A\<*C-@>x", 'xt') |
2443 call assert_equal('foofo', getline(1)) | 2443 call assert_equal('foofo', getline(1)) |
2444 bw! | 2444 bw! |
2445 endfunc | 2445 endfunc |
2446 | 2446 |
2447 func Test_simplify_noremap() | |
2448 call feedkeys("i\<*C-M>", 'nx') | |
2449 call assert_equal('', getline(1)) | |
2450 call assert_equal([0, 2, 1, 0, 1], getcurpos()) | |
2451 bw! | |
2452 endfunc | |
2453 | |
2454 func Test_simplify_timedout() | |
2455 inoremap <C-M>a b | |
2456 call feedkeys("i\<*C-M>", 'xt') | |
2457 call assert_equal('', getline(1)) | |
2458 call assert_equal([0, 2, 1, 0, 1], getcurpos()) | |
2459 iunmap <C-M>a | |
2460 bw! | |
2461 endfunc | |
2462 | |
2447 | 2463 |
2448 " vim: shiftwidth=2 sts=2 expandtab | 2464 " vim: shiftwidth=2 sts=2 expandtab |