=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/status.c,v retrieving revision 1.164 retrieving revision 1.165 diff -c -r1.164 -r1.165 *** src/usr.bin/tmux/status.c 2017/05/01 12:20:55 1.164 --- src/usr.bin/tmux/status.c 2017/05/03 05:53:34 1.165 *************** *** 1,4 **** ! /* $OpenBSD: status.c,v 1.164 2017/05/01 12:20:55 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: status.c,v 1.165 2017/05/03 05:53:34 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 661,667 **** { struct format_tree *ft; time_t t; ! char *tmp; ft = format_create(c, NULL, FORMAT_NONE, 0); format_defaults(ft, c, NULL, NULL, NULL); --- 661,667 ---- { struct format_tree *ft; time_t t; ! char *tmp, *cp; ft = format_create(c, NULL, FORMAT_NONE, 0); format_defaults(ft, c, NULL, NULL, NULL); *************** *** 689,694 **** --- 689,700 ---- if (~flags & PROMPT_INCREMENTAL) c->tty.flags |= (TTY_NOCURSOR|TTY_FREEZE); c->flags |= CLIENT_STATUS; + + if ((flags & PROMPT_INCREMENTAL) && *tmp != '\0') { + xasprintf(&cp, "=%s", tmp); + c->prompt_callbackfn(c->prompt_data, cp, 0); + free(cp); + } free(tmp); format_free(ft);