diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-03-24 18:05:27 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-03-24 18:05:27 +0100 |
commit | 8034a830b7384f1d2c9310857ed6ed022ccbf668 (patch) | |
tree | 8f9327687d22f15cd20554f83128c4247ea88373 /src | |
parent | cleanup and add defs: PASSPHRASE_STAR_CHAR, PASSPHRASE_TEXT, PASSPHRASE_TEXT_EMPTY, PASSPHRASE_TEXT_NOT_EMPTY (diff) | |
download | libpassphrase-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.h | 8 |
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") |