MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / repeatFn

Function repeatFn

lib/web/CodeMirror/keymap/vim.js:2990–2996  ·  view source on GitHub ↗
(cm, fn, repeat)

Source from the content-addressed store, hash-verified

2988 return selectedCharacter;
2989 }
2990 function repeatFn(cm, fn, repeat) {
2991 return function() {
2992 for (var i = 0; i < repeat; i++) {
2993 fn(cm);
2994 }
2995 };
2996 }
2997 function copyCursor(cur) {
2998 return Pos(cur.line, cur.ch);
2999 }

Callers 1

VimFunction · 0.85

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected