mirror of
https://github.com/tmux/tmux.git
synced 2025-01-11 18:58:47 +00:00
Make the check if printing is allowed the same as writing which is less
confusing.
This commit is contained in:
parent
280fe77edd
commit
bcafe51378
6
file.c
6
file.c
@ -177,9 +177,9 @@ file_fire_read(struct client_file *cf)
|
|||||||
int
|
int
|
||||||
file_can_print(struct client *c)
|
file_can_print(struct client *c)
|
||||||
{
|
{
|
||||||
if (c == NULL)
|
if (c == NULL ||
|
||||||
return (0);
|
(c->flags & CLIENT_ATTACHED) ||
|
||||||
if (c->session != NULL && (~c->flags & CLIENT_CONTROL))
|
(c->flags & CLIENT_CONTROL))
|
||||||
return (0);
|
return (0);
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user