Browse Source

Update selection when context changed on mouse click

master
Arun Prakash Jana 5 years ago
parent
commit
fcba62d296
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/nnn.c

+ 5
- 0
src/nnn.c View File

@@ -4328,6 +4328,11 @@ nochange:
if (r >= CTX_MAX) if (r >= CTX_MAX)
sel = SEL_BACK; sel = SEL_BACK;
else if (r >= 0 && r < CTX_MAX && r != cfg.curctx) { 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); savecurctx(&cfg, path, dents[cur].name, r);


/* Reset the pointers */ /* Reset the pointers */


Loading…
Cancel
Save