Editor doesn't see last newline (Dev-C++ 5.11)
A free, portable, fast and simple C/C++ IDE
Brought to you by:
orwelldevcpp
The editor doesn't display the final newline (which is also the last character) in any source file.
If the user adds what appears to be a single newline in Dev-C++, he ends up with the file containing two newlines at the end. This bug can also be spotted by using:
Execute -> View Makefile
as the Dev-C++ editor will not show the ending newline of "Makefile.win".
By the way, it seems that files use UNIX style line endings (LF), without the possibility to change to MS-DOS style (CRLF). Why is the native text encoding of Windows unsupported by a text editor part of a C++ IDE for Windows?
This above was a mistake on my part. The project files were originally created by another editor to have UNIX-style line endings.
Diff: