MCPcopy
hub / github.com/witheve/Eve / updateFakeCursor

Function updateFakeCursor

src/codemirror.js:14244–14252  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

14242 }
14243 }
14244 function updateFakeCursor(cm) {
14245 var vim = cm.state.vim;
14246 var from = clipCursorToContent(cm, copyCursor(vim.sel.head));
14247 var to = offsetCursor(from, 0, 1);
14248 if (vim.fakeCursor) {
14249 vim.fakeCursor.clear();
14250 }
14251 vim.fakeCursor = cm.markText(from, to, {className: 'cm-animate-fat-cursor'});
14252 }
14253 function handleExternalSelection(cm, vim) {
14254 var anchor = cm.getCursor('anchor');
14255 var head = cm.getCursor('head');

Callers 2

updateCmSelectionFunction · 0.85
onCursorActivityFunction · 0.85

Calls 5

clipCursorToContentFunction · 0.85
copyCursorFunction · 0.85
offsetCursorFunction · 0.85
markTextMethod · 0.80
clearMethod · 0.65

Tested by

no test coverage detected