summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/gui-readline.c2
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;
}