nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 59eed597c2fa8356e37d3544088399c0a8b77870
parent de3ad1b14618392753051959b2e7ac52f70252a1
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Wed, 28 Sep 2022 00:30:26 +0530

Fix #1498: count broken when selection is updated outside nnn

Diffstat:
Msrc/nnn.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -634,7 +634,7 @@ static const char * const messages[] = { "session name: ", "'c'p/'m'v as?", "'c'urrent/'s'el?", - "%s %s%s? [Esc cancels]", + "%s %s? [Esc cancels]", "size limit exceeded", "'f'ile/'d'ir/'s'ym/'h'ard?", "'c'li/'g'ui?", @@ -1429,8 +1429,7 @@ static char confirm_force(bool selection) snprintf(str, 64, messages[MSG_FORCE_RM], g_state.trash ? utils[UTIL_GIO_TRASH] + 4 : utils[UTIL_RM_RF], - (selection ? "selected " : "hovered"), - (selection ? xitoa(nselected) : "")); + (selection ? "selected" : "hovered")); int r = get_input(str);