aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2014-03-08 16:28:56 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2014-03-08 16:28:56 +0000
commit77603c4f2de1961b3da141b3e6e4ce2f983365d4 (patch)
tree4ea1533af8574a91a074fbebea204380f5e00dc8 /status.c
parent7019f77c05f45ea9267f7e768d0abb0b6a928a25 (diff)
parent9880114aff0b48649f00266125da1dc3c94a70eb (diff)
downloadrtmux-77603c4f2de1961b3da141b3e6e4ce2f983365d4.tar.gz
rtmux-77603c4f2de1961b3da141b3e6e4ce2f983365d4.tar.bz2
rtmux-77603c4f2de1961b3da141b3e6e4ce2f983365d4.zip
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
Diffstat (limited to 'status.c')
-rw-r--r--status.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/status.c b/status.c
index 9967dc68..e8bbf4c1 100644
--- a/status.c
+++ b/status.c
@@ -655,7 +655,6 @@ void printflike2
status_message_set(struct client *c, const char *fmt, ...)
{
struct timeval tv;
- struct session *s = c->session;
struct message_entry *msg;
va_list ap;
int delay;
@@ -673,10 +672,7 @@ status_message_set(struct client *c, const char *fmt, ...)
msg->msg_time = time(NULL);
msg->msg = xstrdup(c->message_string);
- if (s == NULL)
- limit = 0;
- else
- limit = options_get_number(&s->options, "message-limit");
+ limit = options_get_number(&global_options, "message-limit");
if (ARRAY_LENGTH(&c->message_log) > limit) {
limit = ARRAY_LENGTH(&c->message_log) - limit;
for (i = 0; i < limit; i++) {