Hi this issue still exists on Windows 10 in Geany 1.38 (official Windows stable build).

My workflow is to create a new, 0-byte, file in a folder by right clicking an empty area and then clicking New -> [select file type]. When I do this Geany will consistently pick LF as the line ending type instead of my chosen default of CRLF. I've experienced weird issues in the past because of this due to me forgetting to manually change newly opened empty files to CRLF after opening them. I expect that this workflow is used by many other Geany users.

Geany should have the following behavior IMO:

If an opened file is zero bytes in length or it contains bytes but none of them are end of line characters, Geany should set the document line ending type to the value in: Preferences -> Files -> Default end of line characters

I'm not currently able to write a patch to create this behavior. I'd appreciate if someone else could do this.


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/1950/1598129792@github.com>