=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/status.c,v retrieving revision 1.110 retrieving revision 1.111 diff -c -r1.110 -r1.111 *** src/usr.bin/tmux/status.c 2014/02/14 13:59:01 1.110 --- src/usr.bin/tmux/status.c 2014/03/31 21:41:35 1.111 *************** *** 1,4 **** ! /* $OpenBSD: status.c,v 1.110 2014/02/14 13:59:01 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: status.c,v 1.111 2014/03/31 21:41:35 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 655,661 **** 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; --- 655,660 ---- *************** *** 673,682 **** 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"); if (ARRAY_LENGTH(&c->message_log) > limit) { limit = ARRAY_LENGTH(&c->message_log) - limit; for (i = 0; i < limit; i++) { --- 672,678 ---- msg->msg_time = time(NULL); msg->msg = xstrdup(c->message_string); ! 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++) {