mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-05-07 21:34:09 +02:00
Fix race condition resetting editor on focus gain
Fixes VIM-3773
This commit is contained in:
parent
1105f61988
commit
7548b160ae
@ -80,7 +80,9 @@ class IJEditorFocusListener : EditorListener {
|
||||
if (ijEditor.isDisposed) return@invokeLater
|
||||
val consoleView: ConsoleViewImpl? = ijEditor.getUserData(ConsoleViewImpl.CONSOLE_VIEW_IN_EDITOR_VIEW)
|
||||
if (consoleView != null && consoleView.isRunning && !ijEditor.inInsertMode) {
|
||||
// Switch to Insert mode, but make sure we reset the editor to actually make it apply
|
||||
switchToInsertMode.run()
|
||||
KeyHandler.getInstance().reset(editor)
|
||||
}
|
||||
}
|
||||
KeyHandler.getInstance().reset(editor)
|
||||
|
Loading…
Reference in New Issue
Block a user