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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202104051621.135GLDI93111136%40masaka.moolenaar.net.