mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix auto-select for symlink to dir
This commit is contained in:
parent
885cfd4734
commit
21f9a713dc
|
@ -2134,7 +2134,7 @@ static int filterentries(char *path)
|
||||||
|
|
||||||
/* If the only match is a dir, auto-select and cd into it */
|
/* If the only match is a dir, auto-select and cd into it */
|
||||||
if (ndents == 1 && cfg.filtermode
|
if (ndents == 1 && cfg.filtermode
|
||||||
&& cfg.autoselect && S_ISDIR(dents[0].mode)) {
|
&& cfg.autoselect && (dents[0].flags & DIR_OR_LINK_TO_DIR)) {
|
||||||
*ch = KEY_ENTER;
|
*ch = KEY_ENTER;
|
||||||
cur = 0;
|
cur = 0;
|
||||||
goto end;
|
goto end;
|
||||||
|
|
Loading…
Reference in a new issue