I tried with cat -A and other editors to confirm multiple times that the issue is with geany editor only.
You confirmed what with
cat -A
, show all your workings, I can't see over your shoulder.I cannot replicate any bug in Geany, if I open a file with a newline at the end the extra empty line is shown, if I open a file with no newline at the end no extra line is shown. This is what is the intended behaviour, and as far as I can see Geany is behaving as intended.
You need to provide an exact set of steps that demonstrate your issue, if it can't be replicated it can't be fixed.
issue_with_geany.png (view on web)
Please find attached the screenshot which illustrates the issue, shows alternatives and provides details like machine info, geany version, etc. Also find attached a password-protected zip of that image just in case github has issues with images due to security or whatever reasons. Password to unzip is "geany1234" without the quotes.
Steps to replicate:
int main ()
{
return 0;
}
Now, save this file as hello.c and exit.
Re-open file with the same editor and check if newline is added or not.
Open bash shell, type cat -A hello.c
and check if it contains a '$' symbol immediately to the right of the closing brace '}' or in a newline.
Open hello.c with geany editor and check if it contains a '$' symbol immediately to the right of the closing brace '}' or in a newline.
If in steps 2) and 3) above, if you do NOT see a newline at the end of file, but you do see it in Step 4), then you know the issue is with geany only.
You could also try opening hello.c with vim editor to check the same. Note that I had this line in my .vimrc file: set noeol
Hope this helps.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.