diff options
author | nicm <nicm> | 2015-11-11 23:23:33 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-11-11 23:23:33 +0000 |
commit | 00c34df1868ffde8ece952729ddf2e4df09667be (patch) | |
tree | 9205b1d2f2ad09863118e9fb7450e4dd59d8a6a9 /server-client.c | |
parent | 6f3475c6c713245f5ec760298af9a04b8465b844 (diff) |
Drop mouse-utf8 option and always turn on UTF-8 mouse if the client says
it supports UTF-8.
Diffstat (limited to 'server-client.c')
-rw-r--r-- | server-client.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/server-client.c b/server-client.c index f1e2deff..521f2737 100644 --- a/server-client.c +++ b/server-client.c @@ -801,14 +801,12 @@ server_client_reset_state(struct client *c) mode = (mode & ~ALL_MOUSE_MODES) | MODE_MOUSE_BUTTON; /* - * Set UTF-8 mouse input if required. If the terminal is UTF-8, the - * user has set mouse-utf8 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. + * 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) && options_get_number(oo, "mouse-utf8")) + if ((c->tty.flags & TTY_UTF8) && (mode & ALL_MOUSE_MODES)) mode |= MODE_MOUSE_UTF8; else mode &= ~MODE_MOUSE_UTF8; |