]> granicus.if.org Git - vim/commitdiff
patch 8.0.1521: Shift-Tab does not work in a terminal window v8.0.1521
authorBram Moolenaar <Bram@vim.org>
Fri, 16 Feb 2018 19:01:04 +0000 (20:01 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 16 Feb 2018 19:01:04 +0000 (20:01 +0100)
Problem:    Shift-Tab does not work in a terminal window.
Solution:   Recognize Shift-Tab key press. (Jsees Luehrs, closes #2644)

src/terminal.c
src/version.c

index 039c8b26b0e896f78dc53b921d57303d3f9df7ac..b0c961b61ed746ab69f91252e549188d49a27967 100644 (file)
@@ -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, char *buf)
        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;
index c7240f1a67c99b26ebf482b79ad6db481fc2560c..405e3b58dc7dfa3ae3a9b3ac19e814cebafabaef 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1521,
 /**/
     1520,
 /**/