MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / updateMark

Function updateMark

static/js/codemirror/keymap/vim.js:1737–1745  ·  view source on GitHub ↗
(cm, vim, markName, pos)

Source from the content-addressed store, hash-verified

1735 }
1736
1737 function updateMark(cm, vim, markName, pos) {
1738 if (!inArray(markName, validMarks)) {
1739 return;
1740 }
1741 if (vim.marks[markName]) {
1742 vim.marks[markName].clear();
1743 }
1744 vim.marks[markName] = cm.setBookmark(pos);
1745 }
1746
1747 function charIdxInLine(start, line, character, forward, includeChar) {
1748 // Search for char in line.

Callers 1

VimFunction · 0.85

Calls 2

inArrayFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected