mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
Restore previous behaviour or writing to stdout if available.
This commit is contained in:
parent
8643ece345
commit
fb37d52dde
@ -85,12 +85,18 @@ cmd_run_shell_print(struct job *job, const char *msg)
|
|||||||
|
|
||||||
if (cdata->wp_id != -1)
|
if (cdata->wp_id != -1)
|
||||||
wp = window_pane_find_by_id(cdata->wp_id);
|
wp = window_pane_find_by_id(cdata->wp_id);
|
||||||
if (wp == NULL && cdata->item != NULL && cdata->client != NULL)
|
if (wp == NULL) {
|
||||||
|
if (cdata->item != NULL) {
|
||||||
|
cmdq_print(cdata->item, "%s", msg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (cdata->item != NULL && cdata->client != NULL)
|
||||||
wp = server_client_get_pane(cdata->client);
|
wp = server_client_get_pane(cdata->client);
|
||||||
if (wp == NULL && cmd_find_from_nothing(&fs, 0) == 0)
|
if (wp == NULL && cmd_find_from_nothing(&fs, 0) == 0)
|
||||||
wp = fs.wp;
|
wp = fs.wp;
|
||||||
if (wp == NULL)
|
if (wp == NULL)
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
wme = TAILQ_FIRST(&wp->modes);
|
wme = TAILQ_FIRST(&wp->modes);
|
||||||
if (wme == NULL || wme->mode != &window_view_mode)
|
if (wme == NULL || wme->mode != &window_view_mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user