diff options
author | Timo Sirainen <cras@irssi.org> | 2002-03-10 16:36:35 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-03-10 16:36:35 +0000 |
commit | e5ab1daf30d9bba4dfbb356c64c9eccf6f9fe638 (patch) | |
tree | 1b8619381503f5771f20d0ee9f29fdc473597bdb | |
parent | 25ed0acc654b1ad46e821758c3d67bb409b4406c (diff) | |
download | irssi-e5ab1daf30d9bba4dfbb356c64c9eccf6f9fe638.zip |
When input line is in redirection mode, allow empty lines (eg. enter after
/OPER now aborts it)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2562 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-text/gui-readline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 46cafc18..145273b7 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -175,7 +175,7 @@ static void key_send_line(void) char *str, *add_history; str = gui_entry_get_text(active_entry); - if (str == NULL || *str == '\0') { + if (str == NULL || (*str == '\0' && redir == NULL)) { g_free(str); return; } |