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

elextr notifications at xxxxx
Mon Jan 11 23:37:34 UTC 2021


The behaviour of Geany is self consistent, if you move the cursor after the newline it goes to the start of the next line.  That means you need to have a visual next line after the last line for it to go to.

Also, irrespective of what POSIX says there are situations where files must not have a terminating newline (inline includes for example) so there needs to be a way of indicating the presence or absence of the last newline.  But its impossible for a mere editor to know if its a file with a terminating newline, or a file with an empty unterminated last line, so it shows the presence of a newline by showing a next line place for the cursor to go.

This is the behaviour of other proper modeless visual editors/IDEs, Mint Text Edit (a Gedit clone IIRC) and Eclipse being the two I have at hand and a quick peruse of the vscode docs suggests its the same.  


-- 
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#issuecomment-758292585
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210111/b3062850/attachment.htm>


More information about the Github-comments mailing list