MCPcopy Create free account
hub / github.com/Marus/cortex-debug / killLineFromCursor

Method killLineFromCursor

src/frontend/pty.ts:391–397  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

389 }
390
391 private killLineFromCursor() {
392 const n = this.curLine.length - this.cursorPos + 1;
393 if (n > 1) {
394 this.writeEmitter.fire(ACTIONS.killLineForward());
395 this.curLine = this.curLine.slice(this.cursorPos - 1, n);
396 }
397 }
398
399 private killCurrChar() {
400 if (this.cursorPos <= this.curLine.length) {

Callers 1

handleSpecialCharsMethod · 0.95

Calls 2

fireMethod · 0.80
killLineForwardMethod · 0.80

Tested by

no test coverage detected