[Github-comments] [geany/geany] Blank extra line displayed for files with terminating newline (#2727)

James Shorthouse notifications at xxxxx
Mon Jan 11 20:05:03 UTC 2021


If I open a newline terminated file in geany extra blank line is displayed:

![Screenshot_2021-01-11_19-50-14](https://user-images.githubusercontent.com/18244032/104231328-b2d9e380-5446-11eb-8f43-e61710d8e325.png)

This is incorrect according to the POSIX specification of a file, in which all lines should be newline terminated. From looking at how geany presents the file it would appear that the file has 6 lines with the final line being empty, when it actually only has 5 newline terminated lines.

`wc` correctly reports only 5 lines in this file:

![Screenshot_2021-01-11_19-58-30](https://user-images.githubusercontent.com/18244032/104231821-68a53200-5447-11eb-94bf-bb4511b6054d.png)

And vim correctly only displays 5 lines:

![Screenshot_2021-01-11_19-59-12](https://user-images.githubusercontent.com/18244032/104231908-81ade300-5447-11eb-9332-0eefe244b49c.png)



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2727
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210111/8face844/attachment.htm>


More information about the Github-comments mailing list