Update selection when context changed on mouse click

This commit is contained in:
Arun Prakash Jana 2019-12-12 21:29:48 +05:30
parent 73593450ac
commit fcba62d296
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 5 additions and 0 deletions

View File

@ -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 */