MCPcopy
hub / github.com/enquirer/enquirer / deleteForward

Method deleteForward

lib/types/string.js:82–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 deleteForward() {
83 let { cursor, input } = this.state;
84 if (input[cursor] === void 0) return this.alert();
85 this.input = `${input}`.slice(0, cursor) + `${input}`.slice(cursor + 1);
86 this.render();
87 }
88
89 cutForward() {
90 let pos = this.cursor;

Callers

nothing calls this directly

Calls 2

renderMethod · 0.95
alertMethod · 0.80

Tested by

no test coverage detected