MCPcopy Create free account
hub / github.com/curran/screencasts / clipCursorToContent

Function clipCursorToContent

bower_components/codemirror/keymap/vim.js:2339–2345  ·  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 3

VimFunction · 0.70
exitVisualModeFunction · 0.70
moveToColumnFunction · 0.70

Calls 1

lineLengthFunction · 0.70

Tested by

no test coverage detected