mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Update selection when context changed on mouse click
This commit is contained in:
parent
73593450ac
commit
fcba62d296
|
@ -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…
Reference in a new issue