diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-08-21 04:37:43 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-08-21 04:37:43 +0000 |
commit | 7cc28628e8b58ce4de37738a910ac716d31928ec (patch) | |
tree | 4a8e9554c86c383f3ab573a1fc1c6e12987e048a /usr.bin/tmux | |
parent | 3d86e9cfa9595eb9144b99da6d0910cfd744bc70 (diff) |
Set the default for extended-keys back to off because it appears emacs turns
the keys on but does not correctly handle them except in xterm (!). Also fix so
that off takes effect as expected.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/input.c | 4 | ||||
-rw-r--r-- | usr.bin/tmux/options-table.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index eb23e89c7f7..6cf28f68852 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.227 2024/08/21 04:17:09 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.228 2024/08/21 04:37:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -1412,7 +1412,7 @@ input_csi_dispatch(struct input_ctx *ictx) * Set the extended key reporting mode as per the client request, * unless "extended-keys always" forces us into mode 1. */ - if (options_get_number(global_options, "extended-keys") == 2) + if (options_get_number(global_options, "extended-keys") != 1) break; screen_write_mode_clear(sctx, MODE_KEYS_EXTENDED|MODE_KEYS_EXTENDED_2); diff --git a/usr.bin/tmux/options-table.c b/usr.bin/tmux/options-table.c index dd1782bc280..59cf34654aa 100644 --- a/usr.bin/tmux/options-table.c +++ b/usr.bin/tmux/options-table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options-table.c,v 1.176 2024/08/21 04:17:09 nicm Exp $ */ +/* $OpenBSD: options-table.c,v 1.177 2024/08/21 04:37:42 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -313,7 +313,7 @@ const struct options_table_entry options_table[] = { .type = OPTIONS_TABLE_CHOICE, .scope = OPTIONS_TABLE_SERVER, .choices = options_table_extended_keys_list, - .default_num = 1, + .default_num = 0, .text = "Whether to request extended key sequences from terminals " "that support it." }, |