summaryrefslogtreecommitdiffstats
path: root/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-17 13:30:07 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-17 13:30:07 +0000
commita9ca8df8e3c477560dc6455cd4c73e582b89aef5 (patch)
treef329e8fcbd8947d8fc349a45497a80909f59cf38 /status.c
parent67bf0933e2f85267f46cf7e348ba48d504bc0344 (diff)
Permit top-bit-set characters to be entered in the status line. They could
already be set from the shell and are just passed through when printing (so invisible characters or displaying on terminals with different character sets may cause problems). Note that entering UTF-8 may not work and in any case currently the status line cannot display it correctly (outside of status-left/status-right).
Diffstat (limited to 'status.c')
-rw-r--r--status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/status.c b/status.c
index deb3a621..c030e777 100644
--- a/status.c
+++ b/status.c
@@ -976,7 +976,7 @@ status_prompt_key(struct client *c, int key)
status_prompt_clear(c);
break;
case MODEKEY_OTHER:
- if (key < 32 || key > 126)
+ if (key < 32 || key == 127)
break;
c->prompt_buffer = xrealloc(c->prompt_buffer, 1, size + 2);