diff options
author | Timo Sirainen <cras@irssi.org> | 2004-03-23 20:52:33 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-03-23 20:52:33 +0000 |
commit | 827a3a63117b8b78bd758642e7f1d333433d2f28 (patch) | |
tree | 8d6d534a605395f77dc4e4c70b3f731a146e39df /src | |
parent | 501dc3494e604543b531a76efb1c5dd88d94a4eb (diff) | |
download | irssi-827a3a63117b8b78bd758642e7f1d333433d2f28.zip |
fixed /BIND escape_char
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3234 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/gui-readline.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index c48634fa..7e6d5c94 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -483,11 +483,16 @@ static void sig_gui_key_pressed(gpointer keyp) prev_entry_pos = gui_entry_get_pos(active_entry); prev_key = key; - ret = key_pressed(keyboard, str); - if (escape_next_key || ret < 0) { - /* key wasn't used for anything, print it */ - escape_next_key = FALSE; + if (escape_next_key) { + escape_next_key = FALSE; gui_entry_insert_char(active_entry, key); + ret = 1; + } else { + ret = key_pressed(keyboard, str); + if (ret < 0) { + /* key wasn't used for anything, print it */ + gui_entry_insert_char(active_entry, key); + } } /* ret = 0 : some key create multiple characters - we're in the middle |