mirror of
https://github.com/troglobit/editline.git
synced 2025-09-18 18:39:36 +08:00
Cleanup el_intr_pending in h_search_end()
Fixes an issue when user pressed Ctrl+C when searching.
This commit is contained in:
@@ -686,7 +686,7 @@ static el_status_t h_search_end(const char *p)
|
|||||||
rl_prompt = old_prompt;
|
rl_prompt = old_prompt;
|
||||||
Searching = 0;
|
Searching = 0;
|
||||||
|
|
||||||
if (p == NULL && el_intr_pending > 0) {
|
if (el_intr_pending > 0) {
|
||||||
el_intr_pending = 0;
|
el_intr_pending = 0;
|
||||||
clear_line();
|
clear_line();
|
||||||
return redisplay();
|
return redisplay();
|
||||||
|
Reference in New Issue
Block a user