]> granicus.if.org Git - vim/commitdiff
patch 8.0.1796: GUI: click on tab fails when the focus is in a terminal v8.0.1796
authorBram Moolenaar <Bram@vim.org>
Sun, 6 May 2018 11:53:50 +0000 (13:53 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 6 May 2018 11:53:50 +0000 (13:53 +0200)
Problem:    GUI: click on tab fails when the focus is in a terminal window.
Solution:   Handle K_TABLINE.

src/terminal.c
src/version.c

index f6095b3271b1990171523c6f9ee3347b61e9e90c..58ac786c2fc17c3a98ad4dbbcf148269b79a4d61 100644 (file)
@@ -42,7 +42,6 @@
  *   redirection.  Probably in call to channel_set_pipes().
  * - Win32: Redirecting output does not work, Test_terminal_redir_file()
  *   is disabled.
- * - GUI: when using tabs, focus in terminal, click on tab does not work.
  * - handle_moverect() scrolls one line at a time.  Postpone scrolling, count
  *   the number of lines, until a redraw happens.  Then if scrolling many lines
  *   a redraw is faster.
@@ -1682,6 +1681,10 @@ send_keys_to_term(term_T *term, int c, int typed)
                stuffcharReadbuff(c);
            return FAIL;
 
+       case K_TABLINE:
+           stuffcharReadbuff(c);
+           return FAIL;
+
        case K_IGNORE:
        case K_CANCEL:  // used for :normal when running out of chars
            return FAIL;
index 7a28f4672c083e4a89983c7864fb23eaf1ce1d8e..7fbca85fcd5f567e0fdefc63595093ad7beb50da 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1796,
 /**/
     1795,
 /**/