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

Method moveToBeg

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

Source from the content-addressed store, hash-verified

412 }
413
414 private moveToBeg() {
415 const n = this.cursorPos - 1;
416 if (n > 0) {
417 this.writeEmitter.fire(ACTIONS.cursorBack(n));
418 this.cursorPos = 1;
419 }
420 }
421
422 private moveLeft() {
423 if (this.cursorPos > 1) {

Callers 1

handleSpecialCharsMethod · 0.95

Calls 2

fireMethod · 0.80
cursorBackMethod · 0.80

Tested by

no test coverage detected