mirror of
https://github.com/troglobit/editline.git
synced 2025-05-05 20:11:12 +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);
|
||||
if (p == NULL) {
|
||||
el_ring_bell();
|
||||
clear_line();
|
||||
return redisplay(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user