mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
Open previous active context on context quit
This commit is contained in:
parent
866612bfda
commit
23b54ba0cf
|
@ -7804,9 +7804,9 @@ nochange:
|
||||||
if (sel == SEL_QUITCTX) {
|
if (sel == SEL_QUITCTX) {
|
||||||
int ctx = cfg.curctx;
|
int ctx = cfg.curctx;
|
||||||
|
|
||||||
for (r = (ctx + 1) & ~CTX_MAX;
|
for (r = (ctx - 1) & (CTX_MAX - 1);
|
||||||
(r != ctx) && !g_ctx[r].c_cfg.ctxactive;
|
(r != ctx) && !g_ctx[r].c_cfg.ctxactive;
|
||||||
r = ((r + 1) & ~CTX_MAX)) {
|
r = ((r - 1) & (CTX_MAX - 1))) {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (r != ctx) {
|
if (r != ctx) {
|
||||||
|
|
Loading…
Reference in a new issue