To: vim_dev@googlegroups.com Subject: Patch 8.0.1796 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1796 Problem: GUI: click on tab fails when the focus is in a terminal window. Solution: Handle K_TABLINE. Files: src/terminal.c *** ../vim-8.0.1795/src/terminal.c 2018-05-05 21:00:56.804628425 +0200 --- src/terminal.c 2018-05-06 13:49:32.744549403 +0200 *************** *** 42,48 **** * 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. --- 42,47 ---- *************** *** 1682,1687 **** --- 1681,1690 ---- 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; *** ../vim-8.0.1795/src/version.c 2018-05-05 21:00:56.808628398 +0200 --- src/version.c 2018-05-06 13:52:49.827297349 +0200 *************** *** 763,764 **** --- 763,766 ---- { /* Add new patch number below this line */ + /**/ + 1796, /**/ -- ARTHUR: I am your king! WOMAN: Well, I didn't vote for you. ARTHUR: You don't vote for kings. WOMAN: Well, 'ow did you become king then? The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///