nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 21f9a713dca8454e7fc636f815dcda5725801d10
parent 885cfd47345017ca8524c259e53949312360fc8f
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Mon,  9 Dec 2019 19:12:59 +0530

Fix auto-select for symlink to dir

Diffstat:
Msrc/nnn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -2134,7 +2134,7 @@ static int filterentries(char *path) /* If the only match is a dir, auto-select and cd into it */ 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; cur = 0; goto end;