summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-windows.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-03 21:34:06 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-03 21:34:06 +0000
commitd4558de2327ab5b38720bfad6d079e5878c94d72 (patch)
treebe5013f36991f35d074c62ccc9b5c65897ca9920 /src/fe-text/gui-windows.c
parent9a5b97164e99d90f91ef497acad05480795ec5a8 (diff)
downloadirssi-d4558de2327ab5b38720bfad6d079e5878c94d72.zip
/SET prompt - if target had %c or something in it, it shouldn't be
treated as color code. So color codes can now be used in /SET prompt string itself, but in none of the $variables it uses. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1324 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/gui-windows.c')
-rw-r--r--src/fe-text/gui-windows.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c
index d206f62e..1655fbe8 100644
--- a/src/fe-text/gui-windows.c
+++ b/src/fe-text/gui-windows.c
@@ -693,7 +693,8 @@ void window_update_prompt(void)
prompt = parse_special_string(special, active_win->active_server,
active_win->active, "", &var_used,
- PARSE_FLAG_ISSET_ANY);
+ PARSE_FLAG_ISSET_ANY |
+ PARSE_FLAG_ESCAPE_VARS);
if (!var_used && strchr(special, '$') != NULL) {
/* none of the $vars had non-empty values, use empty prompt */
*prompt = '\0';