mirror of
https://github.com/jarun/nnn.git
synced 2025-03-19 04:49:49 +00:00
Update selection when context changed on mouse click
This commit is contained in:
parent
73593450ac
commit
fcba62d296
1 changed files with 5 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue