diff options
author | 2013-01-17 20:30:43 +0000 | |
---|---|---|
committer | 2013-01-17 20:30:43 +0000 | |
commit | 6e20e9dc06bc13f23f6ba7253bf60e9fe16bbacc (patch) | |
tree | 97f036bdfa2b175b72e29a5624e5c87d2cee2dd9 /usr.bin/tmux/input.c | |
parent | Improve socket splicing tests: (diff) | |
download | wireguard-openbsd-6e20e9dc06bc13f23f6ba7253bf60e9fe16bbacc.tar.xz wireguard-openbsd-6e20e9dc06bc13f23f6ba7253bf60e9fe16bbacc.zip |
Do not allow cursor colours to be set beginning with ? as that will
report the colour, from Hayaki Saito.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r-- | usr.bin/tmux/input.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index 9b0355c5bb9..6a93fe403ce 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.56 2013/01/15 23:18:55 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.57 2013/01/17 20:30:43 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1565,10 +1565,11 @@ input_exit_osc(struct input_ctx *ictx) server_status_window(ictx->wp->window); break; case 12: - screen_set_cursor_colour(ictx->ctx.s, p); + if (*p != '?') /* ? is colour request */ + screen_set_cursor_colour(ictx->ctx.s, p); break; case 112: - if (*p == '\0') /* No arguments allowed. */ + if (*p == '\0') /* no arguments allowed */ screen_set_cursor_colour(ictx->ctx.s, ""); break; default: |