From f1791af2ab07fbf2aac940d8ca71b2f0e78a0090 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 12 Jan 2020 00:09:09 +0530 Subject: [PATCH] Show statusbar instead of blank --- README.md | 2 +- src/nnn.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8d5016ac..a9926966 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ It runs smoothly on the Raspberry Pi, Termux [on Android](https://www.youtube.com/watch?v=AbaauM7gUJw), Linux, macOS, BSD, Haiku, Cygwin, WSL and works seamlessly with DEs and GUI utilities. -[Wiki](https://github.com/jarun/nnn/wiki). +[**Wiki**](https://github.com/jarun/nnn/wiki). ## Features diff --git a/src/nnn.c b/src/nnn.c index 0de89d47..55754ca9 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5239,7 +5239,7 @@ nochange: case SEL_ARCHIVE: r = get_cur_or_sel(); if (!r) { - clearprompt(); + statusbar(path); goto nochange; } @@ -5298,7 +5298,7 @@ nochange: if (access(newpath, F_OK) == 0) { fd = get_input(messages[MSG_OVERWRITE]); if (fd != 'y' && fd != 'Y') { - clearprompt(); + statusbar(path); goto nochange; } } @@ -5314,7 +5314,7 @@ nochange: r = (r == 'c' ? F_CLI : (r == 'g' ? F_NOWAIT | F_NOTRACE | F_MULTI : 0)); if (!r) { - cfg.filtermode ? presel = FILTER : clearprompt(); + cfg.filtermode ? presel = FILTER : statusbar(path); goto nochange; } mkpath(path, dents[cur].name, newpath); @@ -5448,7 +5448,7 @@ nochange: } if (!r) { - cfg.filtermode ? presel = FILTER : clearprompt(); + cfg.filtermode ? presel = FILTER : statusbar(path); goto nochange; } @@ -5557,7 +5557,7 @@ nochange: } } - clearprompt(); + statusbar(path); goto nochange; case SEL_QUITCTX: // fallthrough case SEL_QUITCD: // fallthrough