core: fix infinite loop when the terminal is closed on the secure password prompt (closes #1010)
parent
240a2fc2ca
commit
da8f19bcee
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue