Editor line getting wrong .cursor-line class when cursor off screen


#1

I’ve added a class to the current line in the editor, so the highlight in the line number gutter basically carries across the entire editor.

It works great, but I’ve noticed that if I scroll the editor view, and the cursor ends up off screen (ie: it’s on the 1st line and I scroll to the bottom) there’s a phantom highlight on a semi-random line toward the bottom of the file. I’ve checked, and the line is indeed getting ‘.cursor-line’ applied to it, even those the cursor still registers as on the first line.

It’s one a different line each time, but seems to be related to how fast I scroll.


#2

I’ve noticed this as well. It gets a little confusing at times…