LinePos

data class LinePos(val line: Int, val ch: Int, val sticky: String? = null) : Comparable<LinePos>

A position in the editor, using 0-based line numbers and character offsets. This mirrors CM5's LinePos(line, ch) used throughout the vim engine.

Constructors

Link copied to clipboard
constructor(line: Int, ch: Int, sticky: String? = null)

Properties

Link copied to clipboard
val ch: Int
Link copied to clipboard
val line: Int
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun compareTo(other: LinePos): Int
Link copied to clipboard
fun LinePos.copy(line: Int = this.line, ch: Int = this.ch): LinePos

Copy a LinePos, optionally overriding line or ch.

Link copied to clipboard
open override fun toString(): String