mirror of
https://github.com/jarun/nnn.git
synced 2025-04-01 19:16:42 +00:00
Fix segfault when last dir is not set
This commit is contained in:
parent
4baee859f8
commit
49f21ae013
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue