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:
parent
1e04fc24a7
commit
e276fe0022
@ -7626,6 +7626,8 @@ on_readline_input (char *line)
|
|||||||
if (*line)
|
if (*line)
|
||||||
add_history (line);
|
add_history (line);
|
||||||
|
|
||||||
|
// The text is deleted _afterwards_
|
||||||
|
rl_delete_text (0, rl_end);
|
||||||
process_input (ctx, line);
|
process_input (ctx, line);
|
||||||
free (line);
|
free (line);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user