Skip to content

Commit 50af440

Browse files
committed
due to auto-inserting, we should delete, then replace
1 parent 5781083 commit 50af440

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

XVim/XVimReplaceEvaluator.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ - (XVimEvaluator*)eval:(XVimKeyStroke*)keyStroke{
110110
}
111111
nextEvaluator = nil;
112112
}
113-
if (relayEvent) {
114-
NSEvent *event = [keyStroke toEventwithWindowNumber:0 context:nil];
115-
[self.sourceView interpretKeyEvents:[NSArray arrayWithObject:event]];
116-
}
117113
if (newlinePressed) {
118114
XVimMotion* m = XVIM_MAKE_MOTION(MOTION_FORWARD, CHARACTERWISE_EXCLUSIVE, MOTION_OPTION_NONE, 1);
119115
[self.sourceView xvim_delete:m andYank:NO];
120116
}
117+
if (relayEvent) {
118+
NSEvent *event = [keyStroke toEventwithWindowNumber:0 context:nil];
119+
[self.sourceView interpretKeyEvents:[NSArray arrayWithObject:event]];
120+
}
121121
}
122122
}
123123
return nextEvaluator;

0 commit comments

Comments
 (0)