1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-02 09:59:07 +02:00

Get text object parameters from the operatorArguments

This commit is contained in:
Alex Plate 2023-05-19 10:21:18 +03:00
parent 904ca5d529
commit 48b18da953
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -63,7 +63,7 @@ public abstract class TextObjectActionHandler : EditorActionHandlerBase(true) {
): Boolean {
if (!editor.inVisualMode) return true
val range = getRange(editor, caret, context, cmd.count, cmd.rawCount) ?: return false
val range = getRange(editor, caret, context, operatorArguments.count1, operatorArguments.count0) ?: return false
val block = CommandFlags.FLAG_TEXT_BLOCK in cmd.flags
val newstart = if (block || caret.offset.point >= caret.vimSelectionStart) range.startOffset else range.endOffsetInclusive