From 8f3785f2e5dfa749d02d9e0f7f2883e596792a7e Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 19 Jun 2021 17:23:28 +0530 Subject: [PATCH] Restore statusbar after unmounting remote/archive --- src/nnn.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nnn.c b/src/nnn.c index fd614f2d..434e44fe 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -7259,8 +7259,12 @@ nochange: /* Repopulate as directory content may have changed */ goto begin; case SEL_UMOUNT: - if (!unmount((ndents ? pdents[cur].name : NULL), newpath, &presel, path)) + presel = MSG_ZERO; + if (!unmount((ndents ? pdents[cur].name : NULL), newpath, &presel, path)) { + if (presel == MSG_ZERO) + statusbar(path); goto nochange; + } /* Dir removed, go to next entry */ copynextname(lastname);