mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
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:
parent
0e493addab
commit
3e046cafd2
@ -700,6 +700,7 @@ static el_status_t h_search_end(const char *p)
|
|||||||
p = search_hist(p, search_move);
|
p = search_hist(p, search_move);
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
el_ring_bell();
|
el_ring_bell();
|
||||||
|
clear_line();
|
||||||
return redisplay(0);
|
return redisplay(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user