commit 8f3785f2e5dfa749d02d9e0f7f2883e596792a7e
parent d5359f0455fe73638d563dd56c9fc74dd9973536
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Sat, 19 Jun 2021 17:23:28 +0530
Restore statusbar after unmounting remote/archive
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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);