Mercurial > vim
changeset 28641:fdb18b1122f7 v8.2.4844
patch 8.2.4844: <C-S-I> is simplified to <S-Tab>
Commit: https://github.com/vim/vim/commit/758a8d199988b5b25566b2820db60dc2c9de3e58
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri Apr 29 11:06:34 2022 +0100
patch 8.2.4844: <C-S-I> is simplified to <S-Tab>
Problem: <C-S-I> is simplified to <S-Tab>.
Solution: Do not simplify CTRL if there is also SHIFT. (closes https://github.com/vim/vim/issues/10313)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 29 Apr 2022 12:15:03 +0200 |
parents | 952884eba10d |
children | 96f0542ebb22 |
files | src/getchar.c src/testdir/test_gui.vim src/version.c |
diffstat | 3 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/getchar.c +++ b/src/getchar.c @@ -1634,7 +1634,7 @@ merge_modifyOtherKeys(int c_arg, int *mo { int c = c_arg; - if (*modifiers & MOD_MASK_CTRL) + if ((*modifiers & MOD_MASK_CTRL) && !(*modifiers & MOD_MASK_SHIFT)) { if ((c >= '`' && c <= 0x7f) || (c >= '@' && c <= '_')) {
--- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -1560,4 +1560,10 @@ func Test_gui_findrepl() bw! endfunc +func Test_gui_CTRL_V() + call feedkeys(":let g:str = '\<C-V>\<*C-S-I>\<C-V>\<*C-S-@>'\<CR>", 'tx') + call assert_equal('<C-S-I><C-S-@>', g:str) + unlet g:str +endfunc + " vim: shiftwidth=2 sts=2 expandtab