Skip to content

Conversation

ntrel
Copy link
Member

@ntrel ntrel commented May 30, 2019

Before the user would sometimes have to override UnwantedFiletype= in the user config file to remove an extension written in the system file. Geany would ignore an overridden filetype in the user config file that also matches the extension. This happened when the wanted filetype had a higher index than the unwanted one in filetypes_array.

This also first refactors the code without filetypes_find (which I wrote ages ago) - It's not worth abstracting finding through filetypes_array, it's not bug prone, and it may even cause bugs with non-type-safe predicate signature. It was only used once anyway.

ntrel added 2 commits May 16, 2019 15:58
It's not worth abstracting finding through filetypes_array, it's not bug prone,
and it may even cause bugs with non-type-safe predicate signature. It was only
used once anyway.
Before the user would sometimes have to override 'UnwantedFiletype=' in
the user config file to remove an extension written in the system file.
Geany would ignore an overridden filetype in the user config file that
also matches the extension. This happened when the wanted filetype had a
higher index than the unwanted one in filetypes_array.
@ntrel
Copy link
Member Author

ntrel commented May 31, 2019

Note that #2167 changes the logic again, so you might rather just review that ;-)

@ntrel ntrel merged commit 770cda4 into geany:master Jun 10, 2019
@ntrel ntrel deleted the user-ft-ext branch June 10, 2019 11:15
@ntrel
Copy link
Member Author

ntrel commented Jun 10, 2019

Oops, I should have chosen rebase and merge, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant