mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 8.1.1303: not possible to hide a balloon
Problem: Not possible to hide a balloon. Solution: Hide the balloon when balloon_show() is called with an empty string or list. Add balloon_gettext().
This commit is contained in:
@@ -8506,6 +8506,15 @@ gui_mch_post_balloon(BalloonEval *beval, char_u *mesg)
|
||||
{
|
||||
POINT pt;
|
||||
|
||||
vim_free(beval->msg);
|
||||
beval->msg = mesg == NULL ? NULL : vim_strsave(mesg);
|
||||
if (beval->msg == NULL)
|
||||
{
|
||||
delete_tooltip(beval);
|
||||
beval->showState = ShS_NEUTRAL;
|
||||
return;
|
||||
}
|
||||
|
||||
// TRACE0("gui_mch_post_balloon {{{");
|
||||
if (beval->showState == ShS_SHOWING)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user