mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-05-05 18:34:03 +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) {
|
override fun execute(editor: VimEditor, context: ExecutionContext, keyState: KeyHandlerState) {
|
||||||
LOG.debug("Executing 'ToAction' mapping...")
|
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 {
|
companion object {
|
||||||
|
Loading…
Reference in New Issue
Block a user