MCPcopy Create free account
hub / github.com/breck7/scroll / moveCharLogically

Function moveCharLogically

external/.scrollLibs.js:9327–9330  ·  view source on GitHub ↗
(line, ch, dir)

Source from the content-addressed store, hash-verified

9325 }
9326
9327 function moveCharLogically(line, ch, dir) {
9328 var target = skipExtendingChars(line.text, ch + dir, dir)
9329 return target < 0 || target > line.text.length ? null : target
9330 }
9331
9332 function moveLogically(line, start, dir) {
9333 var ch = moveCharLogically(line, start.ch, dir)

Callers 3

moveLogicallyFunction · 0.85
endOfLineFunction · 0.85
mvFunction · 0.85

Calls 1

skipExtendingCharsFunction · 0.85

Tested by

no test coverage detected