codemirror: found workaround for wrong cursor position when lineNumbers is on

This commit is contained in:
Silvan Calarco 2020-10-02 14:13:04 +02:00
parent 1c266a68b1
commit 8e1daaf940

View File

@ -3342,7 +3342,7 @@
prevBottom = bot;
} else {
var box = cur.node.getBoundingClientRect();
height = box.bottom - box.top;
height = box.bottom - box.top + 1;
// Check that lines don't extend past the right of the current
// editor width
if (!wrapping && cur.text.firstChild)