MCPcopy Index your code
hub / github.com/MoLeft/WebKnife / clipCursorToContent

Function clipCursorToContent

code/keymap/vim.js:2783–2789  ·  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

lineLengthFunction · 0.70
PosFunction · 0.50

Tested by

no test coverage detected