# HG changeset patch # User Christian Brabandt # Date 1518808508 -3600 # Node ID 5fc59833a74849b7d378a79acde99a8c0b2c0744 # Parent 3f77bb7ee6d61275f239dafb5a6e85c26db2d266 patch 8.0.1521: Shift-Tab does not work in a terminal window commit https://github.com/vim/vim/commit/73cddfd559152ea9b7e978ea7cf9c0d3a41e7316 Author: Bram Moolenaar Date: Fri Feb 16 20:01:04 2018 +0100 patch 8.0.1521: Shift-Tab does not work in a terminal window Problem: Shift-Tab does not work in a terminal window. Solution: Recognize Shift-Tab key press. (Jsees Luehrs, closes https://github.com/vim/vim/issues/2644) diff --git a/src/terminal.c b/src/terminal.c --- a/src/terminal.c +++ b/src/terminal.c @@ -43,7 +43,6 @@ * - in GUI vertical split causes problems. Cursor is flickering. (Hirohito * Higashi, 2017 Sep 19) * - Trigger TerminalOpen event? #2422 patch in #2484 - * - Shift-Tab does not work. * - after resizing windows overlap. (Boris Staletic, #2164) * - Redirecting output does not work on MS-Windows, Test_terminal_redir_file() * is disabled. @@ -869,6 +868,8 @@ term_convert_key(term_T *term, int c, ch case K_S_UP: mod = VTERM_MOD_SHIFT; key = VTERM_KEY_UP; break; case TAB: key = VTERM_KEY_TAB; break; + case K_S_TAB: mod = VTERM_MOD_SHIFT; + key = VTERM_KEY_TAB; break; case K_MOUSEUP: other = term_send_mouse(vterm, 5, 1); break; case K_MOUSEDOWN: other = term_send_mouse(vterm, 4, 1); break; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -772,6 +772,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1521, +/**/ 1520, /**/ 1519,