aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-12 21:29:48 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-12 21:29:48 +0530
commitfcba62d296d6f2b1f79ce7df72f984afd0c8fe3f (patch)
tree51e1c7ad451f5364e2551e39a59bea2b12aefb3d
parent73593450acccca9fb552668d50f4c7af15ebc841 (diff)
downloadnnn-fcba62d296d6f2b1f79ce7df72f984afd0c8fe3f.tar.gz
Update selection when context changed on mouse click
-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 */