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:
parent
60767fa908
commit
7c39e9e585
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user