From c601f2c31967b8206e4984b8f6ac145a97ce467c Mon Sep 17 00:00:00 2001 From: zavok Date: Sun, 7 Feb 2016 16:49:31 +0300 Subject: woops, forgot cursor --- spine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spine.c') diff --git a/spine.c b/spine.c index 0836ab0..e1a9f8d 100644 --- a/spine.c +++ b/spine.c @@ -336,6 +336,7 @@ confirm(void) { static int spinecmdhandler (pinentry_t recieved_pinentry) { text[0]='\0'; + cursor = 0; pinentry = recieved_pinentry; if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) @@ -369,8 +370,7 @@ spinecmdhandler (pinentry_t recieved_pinentry) { pinentry_cmd_handler_t pinentry_cmd_handler = spinecmdhandler; int -main(int argc, char *argv[]){ - +main(int argc, char *argv[]) { pinentry_init("spine"); pinentry_parse_opts(argc, argv); if (pinentry_loop()) -- cgit v1.2.3