Ahhh, philosophy, if the file ends in a newline is there an empty line (without a newline) (Geany) or is there a non-existent empty line if the file ends in newline (Vim), until that non-existent line gets some printable characters in which case it miraculously manifests, like if a tree falls in a forest ... you know the rest 😁

I used two files (happened to be filetypes.common) identical except one had a \n at the end and one did not, cat -A showed the line end on the file where it exists (a $), and not on the other, Geany considers between the last newline and the eof to be the last line, irrespective of that being empty or containing characters. Vscode is the same, I don't have emacs (and don't care). Vim is different, thats its choice, but clearly many others have decided against (many of) its decisions, that does not make Geany/Vscode nor Vim "wrong", just different.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany/issues/2310/2396354668@github.com>