Skip to content

Commit

Permalink
Fix #1498: count broken when selection is updated outside nnn
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Sep 27, 2022
1 parent de3ad1b commit 59eed59
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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?",
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 59eed59

Please sign in to comment.