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

Function moveToColumn

static/js/codemirror/keymap/vim.js:1730–1735  ·  view source on GitHub ↗
(cm, repeat)

Source from the content-addressed store, hash-verified

1728 }
1729
1730 function moveToColumn(cm, repeat) {
1731 // repeat is always >= 1, so repeat - 1 always corresponds
1732 // to the column we want to go to.
1733 var line = cm.getCursor().line;
1734 return clipCursorToContent(cm, { line: line, ch: repeat - 1 });
1735 }
1736
1737 function updateMark(cm, vim, markName, pos) {
1738 if (!inArray(markName, validMarks)) {

Callers 1

VimFunction · 0.85

Calls 1

clipCursorToContentFunction · 0.85

Tested by

no test coverage detected