about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-07-01 21:00:31 +0100
committerJames Booth <boothj5@gmail.com>2015-07-01 21:00:31 +0100
commitd8c410d289bcb42982db21660ca30462cff894cf (patch)
treeaeaf752cdc24fdac2d5a85144eb3e6977820d582
parent446f5f0aa1a9b06c71e12894cbca34d3733bd6e2 (diff)
downloadprofani-tty-d8c410d289bcb42982db21660ca30462cff894cf.tar.gz
Don't write chars during password input
-rw-r--r--src/ui/inputwin.c4
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);