MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / setCursorCol

Method setCursorCol

packages/pi-tui/src/components/editor.ts:1431–1435  ·  view source on GitHub ↗

* Set cursor column and clear preferredVisualCol. * Use this for all non-vertical cursor movements to reset sticky column behavior.

(col: number)

Source from the content-addressed store, hash-verified

1429 * Use this for all non-vertical cursor movements to reset sticky column behavior.
1430 */
1431 private setCursorCol(col: number): void {
1432 this.state.cursorCol = col;
1433 this.preferredVisualCol = null;
1434 this.snappedFromCursorCol = null;
1435 }
1436
1437 /**
1438 * Move cursor to a target visual line, applying sticky column logic.

Callers 15

setTextInternalMethod · 0.95
handleInputMethod · 0.95
insertCharacterMethod · 0.95
addNewLineMethod · 0.95
handleBackspaceMethod · 0.95
moveToLineStartMethod · 0.95
moveToLineEndMethod · 0.95
deleteToStartOfLineMethod · 0.95
deleteWordBackwardsMethod · 0.95
deleteWordForwardMethod · 0.95
moveCursorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected