MoveCursorCommand


Moves the cursor with amount characters.

If there is selection, cancel the selection first and move the cursor to the selection start position. Then perform the cursor movement.

Summary

Public constructors

Cmn

Public functions

open Unit

Apply the command on the editing buffer.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Int

The amount of cursor movement.

Cmn

Public constructors

MoveCursorCommand

MoveCursorCommand(amount: Int)
Parameters
amount: Int

The amount of cursor movement. If you want to move backward, pass negative value.

Public functions

applyTo

open fun applyTo(buffer: EditingBuffer): Unit

Apply the command on the editing buffer.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

amount

val amountInt

The amount of cursor movement. If you want to move backward, pass negative value.