From ad4ffb892857c0f2a79ea91304bc9a078766e60f Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 13 Apr 2019 05:40:34 +0530 Subject: [PATCH] Do not refresh if same dir --- src/nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);