summaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-10-04 13:17:31 +0100
committerBram Moolenaar <Bram@vim.org>2022-10-04 13:17:31 +0100
commit2f7e1b8b40dbc97752b8b816560f752f16e0207a (patch)
tree296d75367dc0067b123fdecec6f5aee4e814254a /src/os_unix.c
parentec32c781a282398e3da27f4aec4b03fcd20f8b0d (diff)
downloadvim-git-2f7e1b8b40dbc97752b8b816560f752f16e0207a.tar.gz
patch 9.0.0655: passing modifier codes to a shell running in the GUIv9.0.0655
Problem: passing modifier codes to a shell running in the GUI. (Gary Johnson) Solution: Include modifier codes into the key and drop the modifiers.
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 20e979c15..145f93f35 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -5106,7 +5106,8 @@ mch_call_shell_fork(
}
}
- len = term_replace_bs_del_keycode(ta_buf, ta_len, len);
+ // Remove Vim-specific codes from the input.
+ len = term_replace_keycodes(ta_buf, ta_len, len);
/*
* For pipes: echo the typed characters.