Clear line on failed Ctrl-R operation

The Ctrl-R search prompt and failed search text may be longer than
the regular CLI prompt.  This patch clears the line to remove any
lingering artefacts.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-05-08 16:57:40 +02:00
parent 0e493addab
commit 3e046cafd2

View File

@ -700,6 +700,7 @@ static el_status_t h_search_end(const char *p)
p = search_hist(p, search_move);
if (p == NULL) {
el_ring_bell();
clear_line();
return redisplay(0);
}