diff --git a/src/nnn.c b/src/nnn.c index 6289a080..3564f0db 100644 --- 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);