mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Fix #571
This commit is contained in:
parent
23770ed049
commit
124666cb38
|
@ -3391,7 +3391,11 @@ static void savecurctx(settings *curcfg, char *path, char *curname, int r /* nex
|
||||||
bool selmode = cfg.selmode ? TRUE : FALSE;
|
bool selmode = cfg.selmode ? TRUE : FALSE;
|
||||||
|
|
||||||
/* Save current context */
|
/* Save current context */
|
||||||
|
if (ndents)
|
||||||
xstrsncpy(g_ctx[cfg.curctx].c_name, curname, NAME_MAX + 1);
|
xstrsncpy(g_ctx[cfg.curctx].c_name, curname, NAME_MAX + 1);
|
||||||
|
else
|
||||||
|
g_ctx[cfg.curctx].c_name[0] = '\0';
|
||||||
|
|
||||||
g_ctx[cfg.curctx].c_cfg = cfg;
|
g_ctx[cfg.curctx].c_cfg = cfg;
|
||||||
|
|
||||||
if (ctxr->c_cfg.ctxactive) { /* Switch to saved context */
|
if (ctxr->c_cfg.ctxactive) { /* Switch to saved context */
|
||||||
|
|
Loading…
Reference in a new issue