aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-03-24 18:05:27 +0100
committerMattias Andrée <maandree@operamail.com>2015-03-24 18:05:27 +0100
commit8034a830b7384f1d2c9310857ed6ed022ccbf668 (patch)
tree8f9327687d22f15cd20554f83128c4247ea88373 /src
parentcleanup and add defs: PASSPHRASE_STAR_CHAR, PASSPHRASE_TEXT, PASSPHRASE_TEXT_EMPTY, PASSPHRASE_TEXT_NOT_EMPTY (diff)
downloadlibpassphrase-8034a830b7384f1d2c9310857ed6ed022ccbf668.tar.gz
libpassphrase-8034a830b7384f1d2c9310857ed6ed022ccbf668.tar.bz2
libpassphrase-8034a830b7384f1d2c9310857ed6ed022ccbf668.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/passphrase_helper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/passphrase_helper.h b/src/passphrase_helper.h
index 7ec57a8..bd20472 100644
--- a/src/passphrase_helper.h
+++ b/src/passphrase_helper.h
@@ -288,8 +288,8 @@
/* Implementation of the delete-key's action upon the display */
#if defined(PASSPHRASE_TEXT)
-# define print_erase() \
- (len == 0 ? 0 : (xprintf("\e[K%s%zn", PASSPHRASE_TEXT_EMPTY, &printed_len), \
+# define print_delete() \
+ (len == 0 ? 0 : (xprintf("\e[K%s%zn", PASSPHRASE_TEXT_EMPTY, &printed_len), \
(printed_len ? xprintf("\e[%zuD", printed_len) : 0)))
#else
# define print_delete() xprintf("\033[P")
@@ -298,8 +298,8 @@
/* Implementation of the erase-key's action upon the display */
#if defined(PASSPHRASE_TEXT)
-# define print_erase() \
- (len == 0 ? 0 : (xprintf("\e[K%s%zn", PASSPHRASE_TEXT_EMPTY, &printed_len), \
+# define print_erase() \
+ (len == 0 ? 0 : (xprintf("\e[K%s%zn", PASSPHRASE_TEXT_EMPTY, &printed_len), \
(printed_len ? xprintf("\e[%zuD", printed_len) : 0)))
#elif defined(PASSPHRASE_MOVE)
# define print_erase() xprintf("\033[D\033[P")