aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index f41558b..8756b0d 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3669,6 +3669,16 @@ nochange:
case '@':
presel = fd;
goto nochange;
+ case '\'':
+ for (r = 0; r < ndents; ++r) {
+ if (!(dents[r].flags & DIR_OR_LINK_TO_DIR)) {
+ move_cursor((r) % ndents, 0);
+ break;
+ }
+ }
+ if (r != ndents)
+ continue;;
+ goto nochange;
case '>': // fallthrough
case '.': // fallthrough
case '<': // fallthrough