aboutsummaryrefslogtreecommitdiffstats
path: root/src/passphrase.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-12-04 23:24:07 +0100
committerMattias Andrée <maandree@operamail.com>2015-12-04 23:24:07 +0100
commite5a47f53c16390be8b1c99846cc0dc48b5bc14ef (patch)
treee98d7cbd5da3a85128300647a801f8c7bc4548d2 /src/passphrase.c
parentfix and improve makefile (diff)
downloadlibpassphrase-e5a47f53c16390be8b1c99846cc0dc48b5bc14ef.tar.gz
libpassphrase-e5a47f53c16390be8b1c99846cc0dc48b5bc14ef.tar.bz2
libpassphrase-e5a47f53c16390be8b1c99846cc0dc48b5bc14ef.tar.xz
do not require gcc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/passphrase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passphrase.c b/src/passphrase.c
index 9e5a7e8..b44542f 100644
--- a/src/passphrase.c
+++ b/src/passphrase.c
@@ -169,9 +169,9 @@ char* passphrase_read(void)
else if (cc == KEY_INSERT) insert ^= 1;
# endif /* PASSPHRASE_INSERT && PASSPHRASE_OVERRIDE */
# ifdef PASSPHRASE_DELETE
- else if ((cc == KEY_DELETE) && (len != point)) delete_next(), print_delete();
+ else if ((cc == KEY_DELETE) && (len != point)) { delete_next(); print_delete(); }
# endif /* PASSPHRASE_DELETE */
- else if ((cc == KEY_ERASE) && point) erase_prev(), print_erase();
+ else if ((cc == KEY_ERASE) && point) { erase_prev(); print_erase(); }
else if ((cc == KEY_HOME) && (point != 0)) move_home();
else if ((cc == KEY_END) && (point != len)) move_end();
else if ((cc == KEY_RIGHT) && (point != len)) move_right();