-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Show 🚫
on the last line when a file does not end with \n
#27391
Conversation
734e181
to
6687faf
Compare
🚫
on the last line when a file does not end with \n
@delvh I am not a fan of putting emoji chars into the git message, especially in the "title" |
I know, me neither. |
Co-authored-by: delvh <dev.lh@web.de>
I think we are doing this wrong:
I find it much more important in diffs and I may actually find it annoying in file view. |
Leave it to the future. Actually the old UI also looks good to me. |
The PR was closed? |
Because of #27391 (comment). I think it's better we only have it in diff view, not in file view. |
I mean, at best in both for consistency, but I would have accepted it in only one as well. |
Why I wrote this PR?There were some discussions about the consistency of "line number" and rendered lines. I feel that it could be improved by such approach, and I was killing my time on the train. Why it is closed?The old approach also looks good to me, nothing really bothers me, and I do not have time to make future improvements to satisfy every user. |
I think less is more. During review, a EOL change is significant enough to be highlighted, but seeing this icon in file view will get annoying soon as you may be inclined to think something is wrong with the file when it really isn't. |
Follow my comment #19967 (comment)
Changed the line-counting behavior to not count the last empty line on the UI. And add the "no EOL" mark to the last line.