From: Arun Prakash Jana Date: Sat, 19 Jun 2021 11:53:28 +0000 (+0530) Subject: Restore statusbar after unmounting remote/archive X-Git-Tag: v4.2~69 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=8f3785f2e5dfa749d02d9e0f7f2883e596792a7e;p=nnn.git Restore statusbar after unmounting remote/archive --- 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);