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:
parent
5a83df34a7
commit
69d13a74e6
vim-engine/src/main/kotlin/com/maddyhome/idea/vim
@ -1214,7 +1214,7 @@ abstract class VimChangeGroupBase : VimChangeGroup {
|
||||
context,
|
||||
motionArgument,
|
||||
true,
|
||||
operatorArguments.withCount0(count0),
|
||||
operatorArguments.copy(count0 = count0),
|
||||
) ?: return false
|
||||
return changeRange(
|
||||
editor,
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user