Empty lines can be now sent to /EXEC -interactive windows.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2849 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-06-07 15:32:17 +00:00 committed by cras
commit 80cc61b63f
5 changed files with 20 additions and 23 deletions

View file

@ -181,14 +181,10 @@ static void key_send_line(void)
char *str, *add_history;
str = gui_entry_get_text(active_entry);
if (str == NULL || (*str == '\0' && redir == NULL)) {
g_free(str);
return;
}
/* we can't use gui_entry_get_text() later, since the entry might
have been destroyed after we get back */
add_history = g_strdup(str);
add_history = *str == '\0' ? NULL : g_strdup(str);
history = command_history_current(active_win);
translate_output(str);