mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-06-02 13:34:07 +02:00
Remove unnecessary copy method
This commit is contained in:
parent
5a83df34a7
commit
69d13a74e6
vim-engine/src/main/kotlin/com/maddyhome/idea/vim
@ -1214,7 +1214,7 @@ abstract class VimChangeGroupBase : VimChangeGroup {
|
|||||||
context,
|
context,
|
||||||
motionArgument,
|
motionArgument,
|
||||||
true,
|
true,
|
||||||
operatorArguments.withCount0(count0),
|
operatorArguments.copy(count0 = count0),
|
||||||
) ?: return false
|
) ?: return false
|
||||||
return changeRange(
|
return changeRange(
|
||||||
editor,
|
editor,
|
||||||
|
@ -30,10 +30,7 @@ import com.maddyhome.idea.vim.state.mode.Mode
|
|||||||
data class OperatorArguments(
|
data class OperatorArguments(
|
||||||
val isOperatorPending: Boolean,
|
val isOperatorPending: Boolean,
|
||||||
val count0: Int,
|
val count0: Int,
|
||||||
|
|
||||||
val mode: Mode,
|
val mode: Mode,
|
||||||
) {
|
) {
|
||||||
val count1: Int = count0.coerceAtLeast(1)
|
val count1: Int = count0.coerceAtLeast(1)
|
||||||
|
|
||||||
fun withCount0(count0: Int): OperatorArguments = this.copy(count0 = count0)
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user