mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-04-23 22:15:47 +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}")
|
||||
}
|
||||
// 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.NoMotion
|
||||
if (offsetAndMotion == null) return Motion.Error
|
||||
parentAction.motionType = offsetAndMotion.second
|
||||
return offsetAndMotion.first.toMotionOrError()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user