File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3359,14 +3359,14 @@ - (void)bevalCallback:(id UNUSED)sender
3359
3359
// variable. (The reason we need to know is due to how the Cocoa tool
3360
3360
// tips work: if there is no tool tip we must set it to nil explicitly
3361
3361
// or it might never go away.)
3362
- [self setLastToolTip: nil ];
3363
-
3364
3362
(*balloonEval->msgCB )(balloonEval, 0 );
3365
3363
3366
3364
[self queueMessage: SetTooltipMsgID properties:
3367
3365
[NSDictionary dictionaryWithObject: (lastToolTip ? lastToolTip : @" " )
3368
3366
forKey: @" toolTip" ]];
3369
3367
[self flushQueue: YES ];
3368
+
3369
+ [self setLastToolTip: nil ];
3370
3370
}
3371
3371
}
3372
3372
#endif
Original file line number Diff line number Diff line change 2492
2492
void
2493
2493
gui_mch_post_balloon (BalloonEval *beval UNUSED, char_u *mesg)
2494
2494
{
2495
+ vim_free (beval->msg );
2496
+ beval->msg = mesg == NULL ? NULL : vim_strsave (mesg);
2497
+
2495
2498
NSString *toolTip = [NSString stringWithVimString: mesg];
2496
2499
[[MMBackend sharedInstance ] setLastToolTip: toolTip];
2497
2500
}
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ source check.vim
4
4
CheckGui
5
5
CheckFeature balloon_eval
6
6
7
- if ! has (' gui_macvim' ) " See https://github.com/macvim-dev/macvim/issues/902
8
-
9
7
func Test_balloon_show_gui ()
10
8
let msg = ' this this this this'
11
9
call balloon_show (msg)
@@ -20,5 +18,4 @@ func Test_balloon_show_gui()
20
18
call balloon_show (' ' )
21
19
endfunc
22
20
23
- endif " !has('gui_macvim')
24
21
" vim: shiftwidth = 2 sts = 2 expandtab
You can’t perform that action at this time.
0 commit comments