Browse Source

bim: bugfix for statusbar

K. Lange 2 years ago
parent
commit
f8ea3e3a6c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/bim.c

+ 1 - 1
apps/bim.c

@@ -3480,7 +3480,7 @@ void redraw_statusbar(void) {
 	if (env->file_name) {
 		int len = strlen(env->file_name);
 		int i = 0;
-		while (len > 5 && len > (int)env->width - (int)strlen(right_hand) - (int)strlen(status_bits) - 5) {
+		while (len > 5 && len > (int)global_config.term_width - (int)strlen(right_hand) - (int)strlen(status_bits) - 5) {
 			len--;
 			i += 1;
 		}