Fixed #2041 by changing the detection logic to using the filetype instead of the lexer. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/2043
-- Commit Summary --
* Fix stripping trailing spaces for custom file types using the DIFF lexer (#2041)
-- File Changes --
M src/editor.c (2)
-- Patch Links --
https://github.com/geany/geany/pull/2043.patch https://github.com/geany/geany/pull/2043.diff