File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export interface IModeHandler {
32
32
updateView ( args ?: { drawSelection : boolean ; revealRange : boolean } ) : Promise < void > ;
33
33
runMacro ( recordedMacro : RecordedState ) : Promise < void > ;
34
34
handleMultipleKeyEvents ( keys : string [ ] ) : Promise < void > ;
35
+ handleKeyEvent ( key : string ) : Promise < void > ;
35
36
rerunRecordedState ( transformation : Dot ) : Promise < void > ;
36
37
}
37
38
@@ -269,7 +270,7 @@ export async function executeTransformations(
269
270
}
270
271
await modeHandler . handleMultipleKeyEvents ( stroke . value ) ;
271
272
if ( vimState . currentMode === Mode . Insert ) {
272
- await modeHandler . handleMultipleKeyEvents ( [ '<Esc>' ] ) ;
273
+ await modeHandler . handleKeyEvent ( '<Esc>' ) ;
273
274
}
274
275
}
275
276
vimState . normalCommandState = NormalCommandState . Finished ;
You can’t perform that action at this time.
0 commit comments