Reset unknown file color when resetting filetype colors

The unknown file color is handled as a special case and also needs to be reset here

Change-Id: I0446b7f6586c265dee37fef303f8564f22f06dd4
This commit is contained in:
Christian Soffke 2021-03-02 00:39:12 +01:00 committed by Solomon Peachy
parent 22cc4e4fcf
commit 7d78958f9d

View file

@ -257,6 +257,7 @@ void read_color_theme_file(void) {
for (i = 0; i < MAX_FILETYPES; i++) {
custom_colors[i] = -1;
}
unknown_file.color = -1;
if (!global_settings.colors_file[0] || global_settings.colors_file[0] == '-')
return;
snprintf(buffer, MAX_PATH, THEME_DIR "/%s.colours",