Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2023-01-08 23:26:09 +00:00
3 changed files with 10 additions and 2 deletions

View File

@ -1545,8 +1545,10 @@ window_pane_input_callback(struct client *c, __unused const char *path,
wp = window_pane_find_by_id(cdata->wp);
if (cdata->file != NULL && (wp == NULL || c->flags & CLIENT_DEAD)) {
if (wp == NULL)
if (wp == NULL) {
c->retval = 1;
c->flags |= CLIENT_EXIT;
}
file_cancel(cdata->file);
} else if (cdata->file == NULL || closed || error != 0) {
cmdq_continue(cdata->item);