diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-05-06 13:53:50 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-05-06 13:53:50 +0200 |
commit | 231a2db1b372fe9645505e711ac53b9ee748c535 (patch) | |
tree | 3adb6ea1eeac84dfa963c0dc22727aa23588f408 | |
parent | b0b98d523036d534755bf1cf79d1595e61c3f7ce (diff) | |
download | vim-git-231a2db1b372fe9645505e711ac53b9ee748c535.tar.gz |
patch 8.0.1796: GUI: click on tab fails when the focus is in a terminalv8.0.1796
Problem: GUI: click on tab fails when the focus is in a terminal window.
Solution: Handle K_TABLINE.
-rw-r--r-- | src/terminal.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c index f6095b327..58ac786c2 100644 --- 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, 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; diff --git a/src/version.c b/src/version.c index 7a28f4672..7fbca85fc 100644 --- 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, |