Mercurial > vim
changeset 13849:58b6982ca049 v8.0.1796
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 <Bram@vim.org>
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 06 May 2018 14:00:05 +0200 |
parents | 81a21adb6d9c |
children | 939759958f27 |
files | src/terminal.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;