MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / insert

Function insert

examples/js/repl.js:337–342  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

335
336 /* editing commands */
337 function insert(str) {
338 if (str) {
339 cmd = cmd.substring(0, cursor_pos) + str + cmd.substring(cursor_pos);
340 cursor_pos += str.length;
341 }
342 }
343
344 function quoted_insert() {
345 quote_flag = true;

Callers 3

yankFunction · 0.85
completionFunction · 0.85
handle_keyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected