degesch: fix /query

It changed the buffer, which saved the state, which saved the line
currently being processed (thanks Readline, so obvious).
This commit is contained in:
Přemysl Eric Janouch 2015-06-21 23:21:13 +02:00
parent 1e04fc24a7
commit e276fe0022
1 changed files with 2 additions and 0 deletions

View File

@ -7626,6 +7626,8 @@ on_readline_input (char *line)
if (*line)
add_history (line);
// The text is deleted _afterwards_
rl_delete_text (0, rl_end);
process_input (ctx, line);
free (line);
}