4 ms·
Why GitHub say that a file have x lines but show x-1?
I don't know if this is a bug.
https://i.stack.imgur.com/iBmkG.png
https://i.stack.imgur.com/YCcIA.png
https://i.stack.imgur.com/LBapI.png
https://i.stack.imgur.com/p8dvi.png
The strange thing is when I clone the repo this file have 400 lines, the last is a classical
blank newline.
The real problem is when someone did a change, it happen https://i.imgur.com/LwoeKYk.png and I could think, "oh a newline is missing"
- deleted 7y ago[deleted]
- alsokoloff 7y agoLast empty line is skipped by UI.
- altergo 7y agoYea, but why. The real problem is when someone did a change, it happen https://i.imgur.com/LwoeKYk.png https://i.imgur.com/LwoeKYk.png and I could think, "oh a newline is missing"