MCPcopy Create free account
hub / github.com/continuedev/continue / setCursor

Method setCursor

extensions/cli/src/ui/TextBuffer.ts:42–44  ·  view source on GitHub ↗
(position: number)

Source from the content-addressed store, hash-verified

40 }
41
42 setCursor(position: number): void {
43 this._cursor = Math.max(0, Math.min(position, this._text.length));
44 }
45
46 insertText(text: string): void {
47 // Normalize line endings to prevent terminal display issues

Callers 6

selectSlashCommandFunction · 0.80
selectFileFunction · 0.80
handleHistoryNavigationFunction · 0.80
handleEnterKeyFunction · 0.80
TextBuffer.test.tsFile · 0.80
EditMessageSelectorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected