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

Method isOnLastVisualLine

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

Source from the content-addressed store, hash-verified

452 }
453
454 private isOnLastVisualLine(): boolean {
455 const visualLines = this.buildVisualLineMap(this.lastWidth);
456 const currentVisualLine = this.findCurrentVisualLine(visualLines);
457 return currentVisualLine === visualLines.length - 1;
458 }
459
460 private navigateHistory(direction: 1 | -1): void {
461 this.lastAction = null;

Callers 1

handleInputMethod · 0.95

Calls 2

buildVisualLineMapMethod · 0.95
findCurrentVisualLineMethod · 0.95

Tested by

no test coverage detected