Allow panes to be empty (no command), output can be piped to them with

split-window or display-message -I.
This commit is contained in:
nicm
2019-05-03 20:44:24 +00:00
parent e8e4f4ec3e
commit 9f75635596
10 changed files with 144 additions and 34 deletions

View File

@ -439,7 +439,6 @@ server_check_unattached(void)
}
}
/* Set stdin callback. */
int
server_set_stdin_callback(struct client *c, void (*cb)(struct client *, int,
void *), void *cb_data, char **cause)
@ -453,7 +452,7 @@ server_set_stdin_callback(struct client *c, void (*cb)(struct client *, int,
return (-1);
}
if (c->stdin_callback != NULL) {
*cause = xstrdup("stdin in use");
*cause = xstrdup("stdin is in use");
return (-1);
}