Merge pull request #1480 from luukvbaal/master

Show selected items in rm msg
This commit is contained in:
Arun 2022-09-09 00:40:35 +05:30 committed by GitHub
commit 23f8c37094
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -634,7 +634,7 @@ static const char * const messages[] = {
"session name: ",
"'c'p/'m'v as?",
"'c'urrent/'s'el?",
"%s %s? [Esc cancels]",
"%s %s%s? [Esc cancels]",
"size limit exceeded",
"'f'ile/'d'ir/'s'ym/'h'ard?",
"'c'li/'g'ui?",
@ -1429,7 +1429,8 @@ 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 ? "selection" : "hovered"));
(selection ? "selected " : "hovered"),
(selection ? xitoa(nselected) : ""));
int r = get_input(str);