3 ms·
Yeah, good point. You want to at the very least be able to show the user on which line his cursor is, and that already requires reading all the contents from t
by afc 3y ago
Yeah, good point.
You want to at the very least be able to show the user on which line his cursor is, and that already requires reading all the contents from the start up to the cursor. You might as well read the entire file and also show the user the total line count.