1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-05-30 13:34:08 +02:00

Remove unnecessary copy method

This commit is contained in:
Matt Ellis 2024-07-31 01:17:18 +01:00 committed by Alex Pláte
parent 5a83df34a7
commit 69d13a74e6
2 changed files with 1 additions and 4 deletions
vim-engine/src/main/kotlin/com/maddyhome/idea/vim

View File

@ -1214,7 +1214,7 @@ abstract class VimChangeGroupBase : VimChangeGroup {
context,
motionArgument,
true,
operatorArguments.withCount0(count0),
operatorArguments.copy(count0 = count0),
) ?: return false
return changeRange(
editor,

View File

@ -30,10 +30,7 @@ import com.maddyhome.idea.vim.state.mode.Mode
data class OperatorArguments(
val isOperatorPending: Boolean,
val count0: Int,
val mode: Mode,
) {
val count1: Int = count0.coerceAtLeast(1)
fun withCount0(count0: Int): OperatorArguments = this.copy(count0 = count0)
}