From 3e046cafd20c7b9fb7d74df20eda366a2350ac0f Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 8 May 2019 16:57:40 +0200 Subject: [PATCH] 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 --- src/editline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editline.c b/src/editline.c index fdaf60c..55509ec 100644 --- a/src/editline.c +++ b/src/editline.c @@ -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); }