You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is is not shown only in the "visual" (or whatever) style I'm using? Or is it broken in general.
Without that it gives the strong impression that there isn't actually a line there, even though the cursor is moved down there.
(The general arcane clunkiness of Emacs allowed me to suspect that, assuming first that it's not a line number display problem; I even looked for ways to tell Emacs to stop it... -- before I realized that Emacs is doing the right thing here.)
Not so sure any more... It's a dilemma of how to define a line:
a) one that has a line terminator, or the chars between the last one and EOF
b) one, where you can go to (vertically), regardless of being empty
I prefer (b), but both have merit. Practically though, there's a big benefit to the default behavior, which uses (a): You can immediately tell the difference between an empty last line and one that only has some (invisible) whitespace!
The text was updated successfully, but these errors were encountered:
xparq
changed the title
Fix: display-line-numbers to show line number also for the last empty line!
Fix display-line-numbers to show line number also for the last empty line!
Aug 27, 2023
Is is not shown only in the "visual" (or whatever) style I'm using? Or is it broken in general.
Without that it gives the strong impression that there isn't actually a line there, even though the cursor is moved down there.
(The general arcane clunkiness of Emacs allowed me to suspect that, assuming first that it's not a line number display problem; I even looked for ways to tell Emacs to stop it... -- before I realized that Emacs is doing the right thing here.)
Not so sure any more... It's a dilemma of how to define a line:
a) one that has a line terminator, or the chars between the last one and EOF
b) one, where you can go to (vertically), regardless of being empty
I prefer (b), but both have merit. Practically though, there's a big benefit to the default behavior, which uses (a):
You can immediately tell the difference between an empty last line and one that only has some (invisible) whitespace!
The text was updated successfully, but these errors were encountered: