1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-05-23 04:34:03 +02:00

Mark isOperatorPending as deprecated

It calls the same method in KeyHandler. We do not need it in VimStateMachine
This commit is contained in:
filipp 2024-06-28 14:07:53 +03:00
parent e748b7b265
commit ae8b9b4773
2 changed files with 2 additions and 0 deletions
vim-engine/src/main/kotlin/com/maddyhome/idea/vim

View File

@ -52,6 +52,7 @@ public class VimStateMachineImpl : VimStateMachine {
*/
override var executingCommand: Command? = null
@Deprecated("Please use KeyHandler instead")
override fun isOperatorPending(mode: Mode): Boolean {
val keyHandler = KeyHandler.getInstance()
return keyHandler.isOperatorPending(mode, keyHandler.keyHandlerState)

View File

@ -49,6 +49,7 @@ public interface VimStateMachine {
* This field is reset after the command has been executed.
*/
public var executingCommand: Command?
@Deprecated("Please use KeyHandler instead")
public fun isOperatorPending(mode: Mode): Boolean
public val executingCommandFlags: EnumSet<CommandFlags>