MCPcopy
hub / github.com/csev/py4e / updateLine

Function updateLine

tools/pythonauto/static/codemirrorepl/codemirrorepl.js:960–960  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

958
959 // Update the selection
960 function updateLine(n) {return n <= Math.min(to.line, to.line + lendiff) ? n : n + lendiff;}
961 setSelection(selFrom, selTo, updateLine(sel.from.line), updateLine(sel.to.line));
962
963 // Make sure the scroll-size div has the correct height.

Callers 1

updateLinesNoUndoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected