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

Method deleteLineForward

extensions/cli/src/ui/TextBuffer.ts:157–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155 }
156
157 private deleteLineForward(): void {
158 if (this._cursor >= this._text.length) {
159 return;
160 }
161
162 const nextNewline = this._text.indexOf("\n", this._cursor);
163 const lineEnd = nextNewline === -1 ? this._text.length : nextNewline;
164
165 if (lineEnd === this._cursor) {
166 return;
167 }
168
169 this._text = this._text.slice(0, this._cursor) + this._text.slice(lineEnd);
170 }
171
172 moveToStart(): void {
173 this._cursor = 0;

Callers 2

handleCtrlKeyMethod · 0.95
handleMetaKeyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected