diff --git a/src/nnn.c b/src/nnn.c index 0a291251..fddcf153 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -7143,7 +7143,7 @@ nochange: } if (strcmp(path, newpath) == 0) { - if (bookmark) + if (bookmark || !*lastdir) break; dir = lastdir; /* Go to last dir on bookmark key repeat */