Skip to content

Commit

Permalink
fixup! Fix keybind with +[cmd] not triggering view refreshing
Browse files Browse the repository at this point in the history
  • Loading branch information
koutcher committed Apr 4, 2024
1 parent 44aa8fe commit 1b31e05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,10 @@ load_view(struct view *view, struct view *prev, enum open_flags flags)
* the screen. */
werase(view->win);
/* Do not clear the position if it is the first view. */
if (view->prev && !(flags & (OPEN_RELOAD | OPEN_REFRESH)))
if (view->prev && !(flags & (OPEN_RELOAD | OPEN_REFRESH))) {
clear_position(&view->prev_pos);
report_clear();
}
} else if (view_is_displayed(view)) {
redraw_view(view);
report_clear();
Expand Down

0 comments on commit 1b31e05

Please sign in to comment.