commit fcba62d296d6f2b1f79ce7df72f984afd0c8fe3f
parent 73593450acccca9fb552668d50f4c7af15ebc841
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Thu, 12 Dec 2019 21:29:48 +0530
Update selection when context changed on mouse click
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git 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 */