diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-10 18:58:05 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-10 18:58:05 +0000 |
commit | 06ac4b628dfb581eaad29e8a33859ab9bb07f8bb (patch) | |
tree | 04873d0b7424fbf28e74b15850edc3cef8785f72 /status.c | |
parent | 6c53a1ed684e0e149679e7df3365d8d6f41d4cdc (diff) | |
download | rtmux-06ac4b628dfb581eaad29e8a33859ab9bb07f8bb.tar.gz rtmux-06ac4b628dfb581eaad29e8a33859ab9bb07f8bb.tar.bz2 rtmux-06ac4b628dfb581eaad29e8a33859ab9bb07f8bb.zip |
Add a format client_prefix which is 1 if prefix key has been pressed, used for
example #{?client_prefix,X,Y}. Also a few extra server_client_status needed.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -437,8 +437,7 @@ status_replace1(struct client *c, struct session *s, struct winlink *wl, case 'P': if (window_pane_index(wp, &idx) != 0) fatalx("index not found"); - xsnprintf( - tmp, sizeof tmp, "%u", idx); + xsnprintf(tmp, sizeof tmp, "%u", idx); ptr = tmp; goto do_replace; case 'S': @@ -539,6 +538,7 @@ status_replace(struct client *c, struct session *s, struct winlink *wl, *optr = '\0'; ft = format_create(); + format_client(ft, c); format_session(ft, s); format_winlink(ft, s, wl); format_window_pane(ft, wp); |