1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-09-22 18:24:50 +02:00

Fix the runForEachCaret exception

This commit is contained in:
Alex Plate
2025-03-14 17:40:19 +02:00
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) {