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

This commit is contained in:
Arun Prakash Jana 2022-09-28 00:30:26 +05:30
parent de3ad1b146
commit 59eed597c2
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 3 deletions

View File

@ -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);