MCPcopy Index your code
hub / github.com/csev/py4e / moveInLine

Function moveInLine

tools/pythonauto/static/codemirror/codemirror.js:5885–5890  ·  view source on GitHub ↗
(line, pos, dir, byUnit)

Source from the content-addressed store, hash-verified

5883 }
5884
5885 function moveInLine(line, pos, dir, byUnit) {
5886 if (!byUnit) return pos + dir;
5887 do pos += dir;
5888 while (pos > 0 && isExtendingChar(line.text.charAt(pos)));
5889 return pos;
5890 }
5891
5892 // This is somewhat involved. It is needed in order to move
5893 // 'visually' through bi-directional text -- i.e., pressing left

Callers 1

moveVisuallyFunction · 0.70

Calls 1

isExtendingCharFunction · 0.70

Tested by

no test coverage detected