diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-29 11:06:34 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-29 11:06:34 +0100 |
commit | 758a8d199988b5b25566b2820db60dc2c9de3e58 (patch) | |
tree | adeaa36cc592a497cdca6782c9f07054475d7c93 /src | |
parent | 202b4bd3a452898cfe3ed72facfbf7cb8199fa4b (diff) | |
download | vim-git-758a8d199988b5b25566b2820db60dc2c9de3e58.tar.gz |
patch 8.2.4844: <C-S-I> is simplified to <S-Tab>v8.2.4844
Problem: <C-S-I> is simplified to <S-Tab>.
Solution: Do not simplify CTRL if there is also SHIFT. (closes #10313)
Diffstat (limited to 'src')
-rw-r--r-- | src/getchar.c | 2 | ||||
-rw-r--r-- | src/testdir/test_gui.vim | 6 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c index 2b1bbde4b..6d8697c37 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -1634,7 +1634,7 @@ merge_modifyOtherKeys(int c_arg, int *modifiers) { int c = c_arg; - if (*modifiers & MOD_MASK_CTRL) + if ((*modifiers & MOD_MASK_CTRL) && !(*modifiers & MOD_MASK_SHIFT)) { if ((c >= '`' && c <= 0x7f) || (c >= '@' && c <= '_')) { diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim index 4ae01b855..96723b668 100644 --- 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 diff --git a/src/version.c b/src/version.c index ab771fef1..554098585 100644 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4844, +/**/ 4843, /**/ 4842, |