diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-05-31 14:34:17 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-05-31 14:34:17 -0700 |
| commit | 019ae526da01ef97e6214fb030acf65a7566ecc5 (patch) | |
| tree | cf0929d43681e397913a2707149e36baf269f995 /bb.c | |
| parent | 961ac49f81eb9f4de7acb1adfd8836b07857fe2c (diff) | |
Fixed some redraw dirty flag issues
Diffstat (limited to 'bb.c')
| -rw-r--r-- | bb.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -633,6 +633,7 @@ void clear_selection(bb_t *bb) if (!IS_VIEWED(e)) remove_entry(e); } bb->firstselected = NULL; + bb->dirty = 1; } /* @@ -657,7 +658,8 @@ void deselect_entry(bb_t *bb, entry_t *e) { (void)bb; if (IS_SELECTED(e)) { - bb->dirty = 1; + if (bb->nfiles > 0 && e != bb->files[bb->cursor]) + bb->dirty = 1; if (e->selected.next) e->selected.next->selected.atme = e->selected.atme; *(e->selected.atme) = e->selected.next; @@ -1188,7 +1190,7 @@ void bb_browse(bb_t *bb, const char *path) unlink(cmdfilename); cmdpos = 0; check_cmds = 0; - goto refresh; + goto redraw; } int key; @@ -1280,7 +1282,7 @@ void bb_browse(bb_t *bb, const char *path) if (binding->command[0] == '+') { if (execute_cmd(bb, binding->command + 1) == BB_QUIT) goto quit; - goto refresh; + goto redraw; } move_cursor(tty_out, 0, termheight-1); if (binding->flags & NORMAL_TERM) |
