comparison src/testdir/test_termcodes.vim @ 28610:ce202d2984a0 v8.2.4829

patch 8.2.4829: a key may be simplified to NUL Commit: https://github.com/vim/vim/commit/17c95d9608370559441bb73941ba6d9a4b6b26bd Author: zeertzjq <zeertzjq@outlook.com> Date: Tue Apr 26 12:51:07 2022 +0100 patch 8.2.4829: a key may be simplified to NUL Problem: A key may be simplified to NUL. Solution: Use K_ZERO instead. Use macros instead of hard coded values. (closes #10290)
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Apr 2022 14:00:03 +0200
parents 90d57cd76564
children daad4c7b39be
comparison
equal deleted inserted replaced
28609:d38d48b0205f 28610:ce202d2984a0
2435 call map(output, {_, val -> trim(val)}) 2435 call map(output, {_, val -> trim(val)})
2436 call assert_equal(-1, index(output, 'builtin_gui')) 2436 call assert_equal(-1, index(output, 'builtin_gui'))
2437 call assert_notequal(-1, index(output, 'builtin_dumb')) 2437 call assert_notequal(-1, index(output, 'builtin_dumb'))
2438 endfunc 2438 endfunc
2439 2439
2440 func Test_simplify_ctrl_at()
2441 " feeding unsimplified CTRL-@ should still trigger i_CTRL-@
2442 call feedkeys("ifoo\<Esc>A\<*C-@>", 'xt')
2443 call assert_equal('foofoo', getline(1))
2444 endfunc
2445
2440 2446
2441 " vim: shiftwidth=2 sts=2 expandtab 2447 " vim: shiftwidth=2 sts=2 expandtab