瀏覽代碼

Fix #571

master
Arun Prakash Jana 4 年之前
父節點
當前提交
124666cb38
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. +5
    -1
      src/nnn.c

+ 5
- 1
src/nnn.c 查看文件

@@ -3391,7 +3391,11 @@ static void savecurctx(settings *curcfg, char *path, char *curname, int r /* nex
bool selmode = cfg.selmode ? TRUE : FALSE;

/* Save current context */
xstrsncpy(g_ctx[cfg.curctx].c_name, curname, NAME_MAX + 1);
if (ndents)
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;

if (ctxr->c_cfg.ctxactive) { /* Switch to saved context */


Loading…
取消
儲存