-/* $OpenBSD: status.c,v 1.167 2017/05/29 20:41:29 nicm Exp $ */
+/* $OpenBSD: status.c,v 1.168 2017/05/29 20:42:53 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
ft = format_create(c, NULL, FORMAT_NONE, 0);
format_defaults(ft, c, NULL, NULL, NULL);
-
t = time(NULL);
- tmp = format_expand_time(ft, input, t);
+
+ if (input == NULL)
+ input = "";
+ if (flags & PROMPT_NOFORMAT)
+ tmp = xstrdup(input);
+ else
+ tmp = format_expand_time(ft, input, t);
status_message_clear(c);
status_prompt_clear(c);
-/* $OpenBSD: tmux.h,v 1.773 2017/05/29 20:41:29 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.774 2017/05/29 20:42:53 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
#define PROMPT_SINGLE 0x1
#define PROMPT_NUMERIC 0x2
#define PROMPT_INCREMENTAL 0x4
+#define PROMPT_NOFORMAT 0x8
int prompt_flags;
struct session *session;