mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 11:55:56 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
db978db271
@ -3843,17 +3843,21 @@ server_client_print(struct client *c, int parse, struct evbuffer *evb)
|
||||
size_t size = EVBUFFER_LENGTH(evb);
|
||||
struct window_pane *wp;
|
||||
struct window_mode_entry *wme;
|
||||
char *sanitized, *msg, *line;
|
||||
char *sanitized, *msg, *line, empty = '\0';
|
||||
|
||||
if (!parse) {
|
||||
utf8_stravisx(&msg, data, size,
|
||||
VIS_OCTAL|VIS_CSTYLE|VIS_NOSLASH);
|
||||
log_debug("%s: %s", __func__, msg);
|
||||
} else {
|
||||
msg = EVBUFFER_DATA(evb);
|
||||
if (msg[size - 1] != '\0')
|
||||
evbuffer_add(evb, "", 1);
|
||||
if (size == 0)
|
||||
msg = ∅
|
||||
else {
|
||||
msg = EVBUFFER_DATA(evb);
|
||||
if (msg[size - 1] != '\0')
|
||||
evbuffer_add(evb, "", 1);
|
||||
}
|
||||
}
|
||||
log_debug("%s: %s", __func__, msg);
|
||||
|
||||
if (c == NULL)
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user