MCPcopy Index your code
hub / github.com/witheve/Eve / repeatInsert

Function repeatInsert

src/codemirror.js:14328–14336  ·  view source on GitHub ↗
(repeat)

Source from the content-addressed store, hash-verified

14326 }
14327 }
14328 function repeatInsert(repeat) {
14329 if (macroModeState.lastInsertModeChanges.changes.length > 0) {
14330 // For some reason, repeat cw in desktop VIM does not repeat
14331 // insert mode changes. Will conform to that behavior.
14332 repeat = !vim.lastEditActionCommand ? 1 : repeat;
14333 var changeObject = macroModeState.lastInsertModeChanges;
14334 repeatInsertModeChanges(cm, changeObject.changes, repeat);
14335 }
14336 }
14337 vim.inputState = vim.lastEditInputState;
14338 if (isAction && vim.lastEditActionCommand.interlaceInsertRepeat) {
14339 // o and O repeat have to be interlaced with insert repeats so that the

Callers 1

repeatLastEditFunction · 0.85

Calls 1

repeatInsertModeChangesFunction · 0.85

Tested by

no test coverage detected