aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 8b10122..be5be2c 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4328,6 +4328,11 @@ nochange:
if (r >= CTX_MAX)
sel = SEL_BACK;
else if (r >= 0 && r < CTX_MAX && r != cfg.curctx) {
+ if (cfg.selmode) {
+ updateselbuf(path, newpath);
+ ctx_changed = TRUE;
+ }
+
savecurctx(&cfg, path, dents[cur].name, r);
/* Reset the pointers */