mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-05-02 10:34:04 +02:00
Fix the runForEachCaret exception
This commit is contained in:
parent
60767fa908
commit
7c39e9e585
@ -75,7 +75,7 @@ internal object IdeaSpecifics {
|
|||||||
if (!isVimAction && injector.vimState.mode == Mode.INSERT && action !is EnterAction) {
|
if (!isVimAction && injector.vimState.mode == Mode.INSERT && action !is EnterAction) {
|
||||||
val undoService = injector.undo as VimTimestampBasedUndoService
|
val undoService = injector.undo as VimTimestampBasedUndoService
|
||||||
val nanoTime = System.nanoTime()
|
val nanoTime = System.nanoTime()
|
||||||
editor?.vim?.forEachCaret { undoService.endInsertSequence(it, it.offset, nanoTime) }
|
editor?.vim?.nativeCarets()?.forEach { undoService.endInsertSequence(it, it.offset, nanoTime) }
|
||||||
}
|
}
|
||||||
if (!isVimAction && injector.globalIjOptions().trackactionids) {
|
if (!isVimAction && injector.globalIjOptions().trackactionids) {
|
||||||
if (action !is NotificationService.ActionIdNotifier.CopyActionId && action !is NotificationService.ActionIdNotifier.StopTracking) {
|
if (action !is NotificationService.ActionIdNotifier.CopyActionId && action !is NotificationService.ActionIdNotifier.StopTracking) {
|
||||||
|
Loading…
Reference in New Issue
Block a user