From 2089ab7bd849974beb7ce2f9b0c015f8debb0c5a Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Fri, 17 Aug 2018 21:31:33 +0900 Subject: [PATCH] [bim] Be sure to set syntax on new file --- apps/bim.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/bim.c b/apps/bim.c index 7220d531..c6b0ca7a 100644 --- a/apps/bim.c +++ b/apps/bim.c @@ -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; }