MCPcopy Create free account
hub / github.com/PatMartin/Dex / clipCursorToContent

Function clipCursorToContent

javascript/codemirror/latest/keymap/vim.js:2639–2645  ·  view source on GitHub ↗

* Clips cursor to ensure that line is within the buffer's range * If includeLineBreak is true, then allow cur.ch == lineLength.

(cm, cur, includeLineBreak)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

VimFunction · 0.85
exitVisualModeFunction · 0.85
moveToColumnFunction · 0.85
updateFakeCursorFunction · 0.85

Calls 2

PosFunction · 0.85
lineLengthFunction · 0.70

Tested by

no test coverage detected