Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix display-line-numbers to show line number also for the last empty line! #15

Closed
xparq opened this issue Aug 26, 2023 · 0 comments
Closed

Comments

@xparq
Copy link
Owner

xparq commented Aug 26, 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!

@xparq xparq closed this as not planned Won't fix, can't repro, duplicate, stale Aug 27, 2023
@xparq 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant