[bim] Be sure to set syntax on new file

This commit is contained in:
K. Lange 2018-08-17 21:31:33 +09:00
parent dbeeb21091
commit 2089ab7bd8

View File

@ -1733,6 +1733,9 @@ void open_file(char * file) {
FILE * f = fopen(file, "r");
if (!f) {
if (hilight_on_open) {
env->syntax = match_syntax(file);
}
env->loading = 0;
return;
}