xi-editor / xi-mac

The xi-editor mac frontend.
Apache License 2.0
3.02k stars 147 forks source link

Line numbers become bogus when scrolling #492

Open jansol opened 4 years ago

jansol commented 4 years ago

Scrolling in a large file seems to reset line numbers to something between 1 and 200 regardless of actual position in the file. Actual line numbers are restored when clicking on a line after scrolling ends.

HackerWithoutACause commented 4 years ago

Looks like this may be a problem with the Core as when commenting out the line line?.number = lineNumber which is set on var lineNumber = op.ln on line 180 of LineCache.swift removes the issue for me i.e line numbers don't change when saving in large files. I am not the most familiar with the Core so idk if we should push the issue down to them.