edit: Clear edit line on deinit
This commit is contained in:
parent
566aef60ab
commit
e3acc8f1c8
1 changed files with 3 additions and 0 deletions
|
@ -1137,6 +1137,9 @@ void edit_deinit(const char *history_file,
|
||||||
dl_list_del(&h->list);
|
dl_list_del(&h->list);
|
||||||
os_free(h);
|
os_free(h);
|
||||||
}
|
}
|
||||||
|
edit_clear_line();
|
||||||
|
putchar('\r');
|
||||||
|
fflush(stdout);
|
||||||
eloop_unregister_read_sock(STDIN_FILENO);
|
eloop_unregister_read_sock(STDIN_FILENO);
|
||||||
tcsetattr(STDIN_FILENO, TCSANOW, &prevt);
|
tcsetattr(STDIN_FILENO, TCSANOW, &prevt);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue