To: vim_dev@googlegroups.com Subject: Patch 8.2.2720 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2720 Problem: GTK menu tooltip moves the cursor. Solution: Position the cursor after displaying the tooltip. Do not show the tooltip when editing the command line. Files: src/gui_gtk.c *** ../vim-8.2.2719/src/gui_gtk.c 2021-04-05 14:13:16.401977721 +0200 --- src/gui_gtk.c 2021-04-05 18:17:55.352564512 +0200 *************** *** 691,707 **** --- 691,713 ---- char_u *tooltip; static int did_msg = FALSE; + if (State & CMDLINE) + return; menu = (vimmenu_T *)data; tooltip = CONVERT_TO_UTF8(menu->strings[MENU_INDEX_TIP]); if (tooltip != NULL && utf_valid_string(tooltip, NULL)) { msg((char *)tooltip); did_msg = TRUE; + setcursor(); + out_flush_cursor(TRUE, FALSE); } else if (did_msg) { msg(""); did_msg = FALSE; + setcursor(); + out_flush_cursor(TRUE, FALSE); } CONVERT_TO_UTF8_FREE(tooltip); } *** ../vim-8.2.2719/src/version.c 2021-04-05 17:11:11.093726064 +0200 --- src/version.c 2021-04-05 18:20:22.828192230 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2720, /**/ -- hundred-and-one symptoms of being an internet addict: 64. The remote to the T.V. is missing...and you don't even care. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///