MCPcopy Index your code
hub / github.com/nodejs/node / [kDeleteRight]

Method [kDeleteRight]

lib/internal/readline/interface.js:822–836  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

820 }
821
822 [kDeleteRight]() {
823 if (this.cursor < this.line.length) {
824 this[kBeforeEdit](this.line, this.cursor);
825 // The number of UTF-16 units comprising the character to the left
826 const charSize = charLengthAt(this.line, this.cursor);
827 this.line =
828 StringPrototypeSlice(this.line, 0, this.cursor) +
829 StringPrototypeSlice(
830 this.line,
831 this.cursor + charSize,
832 this.line.length,
833 );
834 this[kRefreshLine]();
835 }
836 }
837
838 [kDeleteWordLeft]() {
839 if (this.cursor > 0) {

Callers

nothing calls this directly

Calls 1

charLengthAtFunction · 0.85

Tested by

no test coverage detected