]> Sergey Matveev's repositories - nnn.git/commitdiff
Restore statusbar after unmounting remote/archive
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 19 Jun 2021 11:53:28 +0000 (17:23 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 19 Jun 2021 11:53:28 +0000 (17:23 +0530)
src/nnn.c

index fd614f2df09da3a5d830980d983683a2f9ca755d..434e44feaa26f788c958df600200c44c040b4e99 100644 (file)
--- 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);