From 75c26ed8505e418e9e31c3b19f82383885c71dcf Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Mon, 17 Sep 2018 13:21:37 +0900 Subject: [PATCH] As should rline when doing rev search --- lib/rline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rline.c b/lib/rline.c index 02ffb288..32fc8268 100644 --- a/lib/rline.c +++ b/lib/rline.c @@ -109,7 +109,7 @@ void rline_reverse_search(rline_context_t * context) { int collected = 0; int start_at = 0; int changed = 0; - fprintf(stderr, "\033[G\033[s"); + fprintf(stderr, "\033[G\033[0m\033[s"); fflush(stderr); key_event_state_t kbd_state = {0}; char * match = "";