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

Function repeatFn

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

Source from the content-addressed store, hash-verified

1453 return true;
1454 }
1455 function repeatFn(cm, fn, repeat) {
1456 return function() {
1457 for (var i = 0; i < repeat; i++) {
1458 fn(cm);
1459 }
1460 };
1461 }
1462 function copyCursor(cur) {
1463 return { line: cur.line, ch: cur.ch };
1464 }

Callers 1

VimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected