]> Sergey Matveev's repositories - nnn.git/commitdiff
Do not refresh if same dir
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 13 Apr 2019 00:10:34 +0000 (05:40 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 13 Apr 2019 00:10:34 +0000 (05:40 +0530)
src/nnn.c

index 6289a080a4befa85f09aca82e632a2f6bfa2c79b..3564f0db472c48646b10b6204231bdf94eaecdfa 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3106,7 +3106,7 @@ nochange:
                                goto nochange;
 
                        if (strcmp(path, dir) == 0)
-                               break;
+                               goto nochange;
 
                        /* SEL_CDLAST: dir pointing to lastdir */
                        xstrlcpy(newpath, dir, PATH_MAX);