diff options
author | James Booth <boothj5@gmail.com> | 2015-07-01 21:00:31 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-07-01 21:00:31 +0100 |
commit | d8c410d289bcb42982db21660ca30462cff894cf (patch) | |
tree | aeaf752cdc24fdac2d5a85144eb3e6977820d582 | |
parent | 446f5f0aa1a9b06c71e12894cbca34d3733bd6e2 (diff) | |
download | profani-tty-d8c410d289bcb42982db21660ca30462cff894cf.tar.gz |
Don't write chars during password input
-rw-r--r-- | src/ui/inputwin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c index 2499f20a..1ea46984 100644 --- a/src/ui/inputwin.c +++ b/src/ui/inputwin.c @@ -159,7 +159,9 @@ inp_readline(void) } ui_reset_idle_time(); - _inp_write(rl_line_buffer, rl_point); + if (!get_password) { + _inp_write(rl_line_buffer, rl_point); + } inp_nonblocking(TRUE); } else { inp_nonblocking(FALSE); |