aboutsummaryrefslogtreecommitdiffstats
path: root/fm.c
diff options
context:
space:
mode:
Diffstat (limited to 'fm.c')
-rw-r--r--fm.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fm.c b/fm.c
index dbe76dc..17d0b7f 100644
--- a/fm.c
+++ b/fm.c
@@ -17,6 +17,7 @@
#include <unistd.h>
static magic_t g_magic_ctx = NULL;
+bool need_redraw = true;
/* Function forward declarations */
static fm_info *fm_w_init(terminal *term);
@@ -53,7 +54,7 @@ static fm_info *fm_w_init(terminal *term)
info->top = 0;
info->bottom = pane_height;
- info->need_redraw = true;
+ need_redraw = true;
return info;
}
@@ -230,7 +231,7 @@ void fm_entries_scroll(fm_info *info, int n)
info->bottom = info->top + win_height;
}
- info->need_redraw = true;
+ need_redraw = true;
}
static void fm_reset_windows_data(fm_info *i)
@@ -274,7 +275,7 @@ void fm_cd_up(fm_info *info)
info->cursor = 0;
info->top = 0;
info->bottom = info->windows[FM_PANE_LEFT]->height;
- info->need_redraw = true;
+ need_redraw = true;
}
void fm_cd_down(fm_info *info)
@@ -311,7 +312,7 @@ void fm_cd_down(fm_info *info)
info->cursor = 0;
info->top = 0;
- info->need_redraw = true;
+ need_redraw = true;
}
free(next_dir);