]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix #1498: count broken when selection is updated outside nnn
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 27 Sep 2022 19:00:26 +0000 (00:30 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 27 Sep 2022 19:00:26 +0000 (00:30 +0530)
src/nnn.c

index f1b19dae6941096075d0edb6c45601391b88ec2a..83ecdb900dbea29452bba0ecca305aeda9a8ae90 100644 (file)
--- 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);