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

Method isOnFirstVisualLine

packages/pi-tui/src/components/editor.ts:448–452  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

446 }
447
448 private isOnFirstVisualLine(): boolean {
449 const visualLines = this.buildVisualLineMap(this.lastWidth);
450 const currentVisualLine = this.findCurrentVisualLine(visualLines);
451 return currentVisualLine === 0;
452 }
453
454 private isOnLastVisualLine(): boolean {
455 const visualLines = this.buildVisualLineMap(this.lastWidth);

Callers 1

handleInputMethod · 0.95

Calls 2

buildVisualLineMapMethod · 0.95
findCurrentVisualLineMethod · 0.95

Tested by

no test coverage detected