Skip to content

Commit

Permalink
Fix keybind with +[cmd] not triggering view refreshing
Browse files Browse the repository at this point in the history
Fixes #1323
  • Loading branch information
koutcher committed Apr 2, 2024
1 parent d4a13ff commit d5829fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 3 additions & 7 deletions src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,10 @@ open_external_viewer(const char *argv[], const char *dir, bool silent, bool conf
if (echo) {
char buf[SIZEOF_STR] = "";

io_run_buf(argv, buf, sizeof(buf), dir, false);
if (*buf) {
ok = io_run_buf(argv, buf, sizeof(buf), dir, true);
if (*buf)
report("%s", buf);
return true;
} else {
report("No output");
return false;
}

} else if (silent || is_script_executing()) {
ok = io_run_bg(argv, dir);

Expand Down
1 change: 0 additions & 1 deletion src/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,6 @@ load_view(struct view *view, struct view *prev, enum open_flags flags)
/* Do not clear the position if it is the first view. */
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 d5829fa

Please sign in to comment.