aboutsummaryrefslogtreecommitdiff
path: root/bb.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-06-06 18:13:13 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-06-06 18:13:13 -0700
commit76f1cd816b397427edc12fced6c95645b9df6e78 (patch)
treee422f4340fd5078c1c95c4d6ef2c5b66c7238547 /bb.c
parent069415a78b5b97cd0d0accf7a925f7f599f7458c (diff)
Removed some unnecessary +refreshes and just set the dirty bit to 1
whenever an external program runs so the screen redraws without necessarily refreshing the file listing.
Diffstat (limited to 'bb.c')
-rw-r--r--bb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bb.c b/bb.c
index 20c2231..2900950 100644
--- a/bb.c
+++ b/bb.c
@@ -1313,8 +1313,7 @@ void bb_browse(bb_t *bb, const char *path)
run_cmd_on_selection(bb, binding->command);
init_term();
fputs(T_ON(T_ALT_SCREEN), tty_out);
- if (binding->flags & NORMAL_TERM)
- bb->dirty = 1;
+ bb->dirty = 1;
check_cmds = 1;
goto redraw;
}