core: fix infinite loop when the terminal is closed on the secure password prompt (closes #1010)

v2.8-utf8proc
Sébastien Helleu 2017-06-03 13:41:49 +02:00
parent 240a2fc2ca
commit da8f19bcee
2 changed files with 3 additions and 2 deletions

View File

@ -32,6 +32,7 @@ Improvements::
Bug fixes::
* core: fix infinite loop when the terminal is closed on the secure password prompt (issue #1010)
* buflist: fix long mouse gestures
* buflist: fix slow switch of buffer when there are a lot of buffers opened (issue #998)
* buflist: add option "bar" in command /buflist, do not automatically add the "buflist" bar when the option buflist.look.enabled is off (issue #994)

View File

@ -104,8 +104,8 @@ gui_main_get_password (const char **prompt, char *password, int size)
/* enter */
if (ch == '\n')
break;
/* ctrl-C */
if (ch == 3)
/* terminal lost or ctrl-C */
if ((ch == ERR) || (ch == 3))
{
password[0] = 3;
i = 1;