=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/status.c,v retrieving revision 1.164 retrieving revision 1.165 diff -u -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 +1,4 @@ -/* $OpenBSD: status.c,v 1.164 2017/05/01 12:20:55 nicm Exp $ */ +/* $OpenBSD: status.c,v 1.165 2017/05/03 05:53:34 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -661,7 +661,7 @@ { struct format_tree *ft; time_t t; - char *tmp; + char *tmp, *cp; ft = format_create(c, NULL, FORMAT_NONE, 0); format_defaults(ft, c, NULL, NULL, NULL); @@ -689,6 +689,12 @@ 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);