My Linuy PB-IDE even removes one last linebreak every time i save the file and reopen the Editor. I don't want an editor to do that either way. Might be Scintilla or the Prefs handling, i don't know.
But for wc: its counts newline characters, not lines. Otherwise it would get ambiguous. Does an empty file has one empty line or zero lines?
I agree with you.
If you edit a PureBasic source code file with another program, it is very likely that the last line will be missing when you reload it.
PureBasic 5.4-5.7, Linux: (X/L/K)Ubuntus+Mint - Windows XP (32Bit) PureBasic Linux-API-Library & Viewer: http://www.chabba.de