From 3004694cd46baa2d5d208ae536d6537851e2cb60 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 18 Nov 2019 18:50:08 +0530 Subject: Update man page on executing commands directly. Remove extra static string. --- src/nnn.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/nnn.c b/src/nnn.c index a9177f0..6be89fb 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -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') -- cgit v1.2.3-70-g09d2