diff options
author | Timo Sirainen <cras@irssi.org> | 2002-05-15 23:20:19 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-05-15 23:20:19 +0000 |
commit | ee80e7601a0e664525cfc1f47bf90f30c93512d4 (patch) | |
tree | 49ee0c46c9c82f59e26a43d6d488e066070034e6 | |
parent | e8c14fea6d7e02765c85417ca5e81e4f0f42d602 (diff) | |
download | irssi-ee80e7601a0e664525cfc1f47bf90f30c93512d4.zip |
^ key couldn't be used with /BIND
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2796 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-text/gui-readline.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index c23b42c7..394374ae 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -162,6 +162,12 @@ void handle_key(unichar key) str[utf16_char_to_utf8(key, str)] = '\0'; } + if (strcmp(str, "^") == 0) { + /* change it as ^^ */ + str[1] = '^'; + str[2] = '\0'; + } + if (escape_next_key || !key_pressed(keyboard, str)) { /* key wasn't used for anything, print it */ escape_next_key = FALSE; |