mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +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:
parent
0eb8f228f7
commit
842bd67dd4
@ -686,7 +686,7 @@ static el_status_t h_search_end(const char *p)
|
||||
rl_prompt = old_prompt;
|
||||
Searching = 0;
|
||||
|
||||
if (p == NULL && el_intr_pending > 0) {
|
||||
if (el_intr_pending > 0) {
|
||||
el_intr_pending = 0;
|
||||
clear_line();
|
||||
return redisplay();
|
||||
|
Loading…
Reference in New Issue
Block a user