mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
Merge pull request #636 from ichizok/fix/gui-stopblink
Fix: stopBlink checks whether should update cursor
This commit is contained in:
@@ -121,7 +121,7 @@ extern NSTimeInterval MMBalloonEvalInternalDelay;
|
||||
- (void)setMouseShape:(int)shape;
|
||||
- (void)setBlinkWait:(int)wait on:(int)on off:(int)off;
|
||||
- (void)startBlink;
|
||||
- (void)stopBlink;
|
||||
- (void)stopBlink:(BOOL)updateCursor;
|
||||
- (void)adjustLinespace:(int)linespace;
|
||||
- (void)adjustColumnspace:(int)columnspace;
|
||||
- (void)activate;
|
||||
|
||||
@@ -1078,9 +1078,9 @@ extern GuiFont gui_mch_retain_font(GuiFont font);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)stopBlink
|
||||
- (void)stopBlink:(BOOL)updateCursor
|
||||
{
|
||||
if (MMBlinkStateOff == blinkState) {
|
||||
if (MMBlinkStateOff == blinkState && updateCursor) {
|
||||
gui_update_cursor(TRUE, FALSE);
|
||||
[self flushQueue:YES];
|
||||
}
|
||||
|
||||
@@ -1254,9 +1254,7 @@ gui_mch_start_blink(void)
|
||||
void
|
||||
gui_mch_stop_blink(int may_call_gui_update_cursor)
|
||||
{
|
||||
if (may_call_gui_update_cursor)
|
||||
gui_update_cursor(TRUE, FALSE);
|
||||
[[MMBackend sharedInstance] stopBlink];
|
||||
[[MMBackend sharedInstance] stopBlink:may_call_gui_update_cursor];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user