mirror of
https://github.com/irssi/irssi.git
synced 2026-08-13 13:42:13 +02:00
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:
parent
da1252cf2c
commit
80cc61b63f
5 changed files with 20 additions and 23 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue