From 8034a830b7384f1d2c9310857ed6ed022ccbf668 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 24 Mar 2015 18:05:27 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/passphrase_helper.h | 8 ++++---- 1 file 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") -- cgit v1.2.3-70-g09d2