summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-03-31 19:03:58 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-03-31 18:58:49 +0200
commit1684f60207d12190133b046b95c4d3a76c2c87e7 (patch)
treee828e5ab080a1cd3c5b8a37fd5fde968c1faa3b2 /src/gui
parent613dc73fd4f60d96d62bab050eff05dcfdd5c75d (diff)
downloadweechat-1684f60207d12190133b046b95c4d3a76c2c87e7.zip
core: fix key `meta-[O` (unfocus with xterm) (closes #1900)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-key.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/gui-key.c b/src/gui/gui-key.c
index 7f7efc143..ba52e805c 100644
--- a/src/gui/gui-key.c
+++ b/src/gui/gui-key.c
@@ -449,13 +449,7 @@ gui_key_expand (const char *key, char **key_name, char **key_name_alias)
key += 2;
}
- if (string_strncmp (key, "\x01[[O", 4) == 0)
- {
- snprintf (str_raw, sizeof (str_raw), "meta-[O");
- meta2 = 1;
- key += 4;
- }
- else if (string_strncmp (key, "\x01[O", 3) == 0)
+ if (string_strncmp (key, "\x01[O", 3) == 0)
{
snprintf (str_raw, sizeof (str_raw), "meta-O");
meta2 = 1;