1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-04-23 04:15:46 +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
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -75,7 +75,7 @@ internal object IdeaSpecifics {
if (!isVimAction && injector.vimState.mode == Mode.INSERT && action !is EnterAction) {
val undoService = injector.undo as VimTimestampBasedUndoService
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 (action !is NotificationService.ActionIdNotifier.CopyActionId && action !is NotificationService.ActionIdNotifier.StopTracking) {