summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-11-23 20:53:09 +0000
committernicm <nicm@openbsd.org>2015-11-23 20:53:09 +0000
commit2ac09bbfe3a94ec29e14500a26266b4aeb6bb091 (patch)
treef89e2ea808425308f43c2641a5066fd9de681ad0 /usr.bin/tmux/server-client.c
parentI accidentally removed a newline in usage() when converting the log (diff)
downloadwireguard-openbsd-2ac09bbfe3a94ec29e14500a26266b4aeb6bb091.tar.xz
wireguard-openbsd-2ac09bbfe3a94ec29e14500a26266b4aeb6bb091.zip
Remove support for the UTF-8 mouse extension. This was a briefly used,
poor idea that was fairly quickly replaced by SGR mouse input (which is now widespread). It is impossible to tell the difference between UTF-8 and non-UTF-8 mouse input; since the mouse-utf8 option was removed tmux has not handled it correctly in any case; and it is ridiculous to have three different forms of mouse input.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 4f49b812c02..afae83692c7 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.171 2015/11/19 22:46:46 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.172 2015/11/23 20:53:09 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -808,17 +808,6 @@ server_client_reset_state(struct client *c)
if (options_get_number(oo, "mouse"))
mode = (mode & ~ALL_MOUSE_MODES) | MODE_MOUSE_BUTTON;
- /*
- * Set UTF-8 mouse input if required. If the terminal is UTF-8 and any
- * mouse mode is in effect, turn on UTF-8 mouse input. If the receiving
- * terminal hasn't requested it (that is, it isn't in s->mode), then
- * it'll be converted in input_mouse.
- */
- if ((c->tty.flags & TTY_UTF8) && (mode & ALL_MOUSE_MODES))
- mode |= MODE_MOUSE_UTF8;
- else
- mode &= ~MODE_MOUSE_UTF8;
-
/* Set the terminal mode and reset attributes. */
tty_update_mode(&c->tty, mode, s);
tty_reset(&c->tty);