diff options
| author | 2019-11-18 18:50:08 +0530 | |
|---|---|---|
| committer | 2019-11-18 18:57:04 +0530 | |
| commit | 3004694cd46baa2d5d208ae536d6537851e2cb60 (patch) | |
| tree | 5638b675a3bb266f80941bfadbf3b729346a0dbd /src | |
| parent | 577d8d9bfc5e2c210b3e487c38773954e933d7fa (diff) | |
| download | nnn-3004694cd46baa2d5d208ae536d6537851e2cb60.tar.gz | |
Update man page on executing commands directly.
Remove extra static string.
Diffstat (limited to 'src')
| -rw-r--r-- | src/nnn.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -621,12 +621,11 @@ static void xdelay(void) static char confirm_force(bool selection) { - char str[64] = "forcibly remove current file (unrecoverable)? [y/Y confirms]"; + char str[64]; int r; - if (selection) - snprintf(str, 64, "forcibly remove %d file(s) (unrecoverable)? [y/Y confirms]", nselected); - + snprintf(str, 64, "forcibly remove %s file%s (unrecoverable)? [y/Y confirms]", + (selection ? xitoa(nselected) : "current"), (selection ? "(s)" : "")); r = get_input(str); if (r == 'y' || r == 'Y') |