Skip to content

Commit

Permalink
fix(cursor): cursor promise resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
theol0403 committed Jul 22, 2023
1 parent 149870f commit 9ed40f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cursor_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export class CursorManager implements Disposable, NeovimRedrawProcessable, Neovi
!this.main.modeManager.isRecordingInInsertMode
) {
this.logger.debug(`${LOG_PREFIX}: Skipping insert cursor update in editor`);
this.cursorUpdatePromise.get(editor)?.resolve();
this.cursorUpdatePromise.delete(editor);
return;
}
Expand Down

0 comments on commit 9ed40f3

Please sign in to comment.