aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-08-05 21:19:47 +0800
committerverdant <im@verdant.ee>2026-08-05 21:19:47 +0800
commit231e310083a10b77141fab398a382de55abd0407 (patch)
tree4155b077025af3d1628a1ebe1c77620cfe8d1dcb
parent9ad19594dfc9eadd93a788dcd387409299ee7498 (diff)
downloadsf-231e310083a10b77141fab398a382de55abd0407.tar.gz
sf-231e310083a10b77141fab398a382de55abd0407.zip
cd down when current item is not a directory and enter is pressed
-rw-r--r--src/keys.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/keys.c b/src/keys.c
index 8ad6852..747e5c8 100644
--- a/src/keys.c
+++ b/src/keys.c
@@ -85,9 +85,8 @@ handling_keys(int ch, fm_info *i)
char *argv[] = {enveditor, filepath, NULL};
open_with_editor(argv);
- break;
} else {
- return;
+ fm_cd_down(i);
}
break;
case '+':