Skip to content

Commit ace799a

Browse files
committed
Fix: stopBlink checks whether should update cursor
1 parent b2dc98e commit ace799a

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/MacVim/MMBackend.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ extern NSTimeInterval MMBalloonEvalInternalDelay;
121121
- (void)setMouseShape:(int)shape;
122122
- (void)setBlinkWait:(int)wait on:(int)on off:(int)off;
123123
- (void)startBlink;
124-
- (void)stopBlink;
124+
- (void)stopBlink:(BOOL)updateCursor;
125125
- (void)adjustLinespace:(int)linespace;
126126
- (void)adjustColumnspace:(int)columnspace;
127127
- (void)activate;

src/MacVim/MMBackend.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,9 +1078,9 @@ - (void)startBlink
10781078
}
10791079
}
10801080

1081-
- (void)stopBlink
1081+
- (void)stopBlink:(BOOL)updateCursor
10821082
{
1083-
if (MMBlinkStateOff == blinkState) {
1083+
if (MMBlinkStateOff == blinkState && updateCursor) {
10841084
gui_update_cursor(TRUE, FALSE);
10851085
[self flushQueue:YES];
10861086
}

src/MacVim/gui_macvim.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,9 +1254,7 @@
12541254
void
12551255
gui_mch_stop_blink(int may_call_gui_update_cursor)
12561256
{
1257-
if (may_call_gui_update_cursor)
1258-
gui_update_cursor(TRUE, FALSE);
1259-
[[MMBackend sharedInstance] stopBlink];
1257+
[[MMBackend sharedInstance] stopBlink:may_call_gui_update_cursor];
12601258
}
12611259

12621260

0 commit comments

Comments
 (0)