MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / joinLineNext

Function joinLineNext

mini-code-edit/cm/keymap/vim.js:125–133  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

123 cm.setCursor(cur.line, word[where == "end" ? "to" : "from"], true);
124 }
125 function joinLineNext(cm) {
126 var cur = cm.getCursor(), ch = cur.ch, line = cm.getLine(cur.line);
127 CodeMirror.commands.goLineEnd(cm);
128 if (cur.line != cm.lineCount()) {
129 CodeMirror.commands.goLineEnd(cm);
130 cm.replaceSelection(" ", "end");
131 CodeMirror.commands.delCharRight(cm);
132 }
133 }
134 function delTillMark(cm, cHar) {
135 var i = mark[cHar];
136 if (i === undefined) {

Callers 1

vim.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected