mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-04-24 16:15:46 +02:00
Respect count with <Action> mappings
This commit is contained in:
parent
7ac743c604
commit
b358e63444
@ -260,7 +260,11 @@ class ToActionMappingInfo(
|
||||
|
||||
override fun execute(editor: VimEditor, context: ExecutionContext, keyState: KeyHandlerState) {
|
||||
LOG.debug("Executing 'ToAction' mapping...")
|
||||
injector.actionExecutor.executeAction(editor, name = action, context = context)
|
||||
val commandBuilder = KeyHandler.getInstance().keyHandlerState.commandBuilder
|
||||
for (i in 0 until commandBuilder.calculateCount0Snapshot().coerceAtLeast(1)) {
|
||||
injector.actionExecutor.executeAction(editor, name = action, context = context)
|
||||
}
|
||||
commandBuilder.resetCount()
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
Loading…
Reference in New Issue
Block a user