# HG changeset patch # User Christian Brabandt # Date 1525608005 -7200 # Node ID 58b6982ca04913ddf271706d737b155143e47a52 # Parent 81a21adb6d9c4f5e5abf9cf7df087970ec491660 patch 8.0.1796: GUI: click on tab fails when the focus is in a terminal commit https://github.com/vim/vim/commit/231a2db1b372fe9645505e711ac53b9ee748c535 Author: Bram Moolenaar Date: Sun May 6 13:53:50 2018 +0200 patch 8.0.1796: GUI: click on tab fails when the focus is in a terminal Problem: GUI: click on tab fails when the focus is in a terminal window. Solution: Handle K_TABLINE. diff --git a/src/terminal.c b/src/terminal.c --- a/src/terminal.c +++ b/src/terminal.c @@ -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, i 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -762,6 +762,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1796, +/**/ 1795, /**/ 1794,