mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-05-03 13:34:03 +02:00
Stop macro execution after a failed search
This commit is contained in:
parent
fb270cdbc5
commit
144cc5c3fc
@ -88,8 +88,7 @@ class ProcessSearchEntryAction(private val parentAction: ProcessExEntryAction) :
|
|||||||
|
|
||||||
else -> throw ExException("Unexpected search label ${argument.label}")
|
else -> throw ExException("Unexpected search label ${argument.label}")
|
||||||
}
|
}
|
||||||
// Vim doesn't treat not finding something as an error, although it might report either an error or warning message
|
if (offsetAndMotion == null) return Motion.Error
|
||||||
if (offsetAndMotion == null) return Motion.NoMotion
|
|
||||||
parentAction.motionType = offsetAndMotion.second
|
parentAction.motionType = offsetAndMotion.second
|
||||||
return offsetAndMotion.first.toMotionOrError()
|
return offsetAndMotion.first.toMotionOrError()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user