Skip to content

Commit

Permalink
Do not fire VimInsertListener on every mode change
Browse files Browse the repository at this point in the history
  • Loading branch information
lippfi committed Jul 26, 2024
1 parent c0bb3fc commit 913673e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import com.maddyhome.idea.vim.state.mode.Mode
@Deprecated(message = "Please use ModeChangeListener", replaceWith = ReplaceWith("ModeChangeListener", imports = ["import com.maddyhome.idea.vim.common.ModeChangeListener"]))
interface VimInsertListener : ModeChangeListener {
override fun modeChanged(editor: VimEditor, oldMode: Mode) {
insertModeStarted(editor.ij)
if (editor.mode == Mode.INSERT) {
insertModeStarted(editor.ij)
}
}

fun insertModeStarted(editor: Editor)
Expand Down

0 comments on commit 913673e

Please sign in to comment.