소스 검색

Fix #639: store NNNLVL in tmp var

master
Arun Prakash Jana 5 년 전
부모
커밋
fdfbac0386
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. +3
    -2
      src/nnn.c

+ 3
- 2
src/nnn.c 파일 보기

@@ -6377,11 +6377,12 @@ nochange:
case SEL_SHELL:
/* Set nnn nesting level */
tmp = getenv(env_cfg[NNNLVL]);
setenv(env_cfg[NNNLVL], xitoa((tmp ? atoi(tmp) : 0) + 1), 1);
r = tmp ? atoi(tmp) : 0;
setenv(env_cfg[NNNLVL], xitoa(r + 1), 1);

setenv(envs[ENV_NCUR], (ndents ? dents[cur].name : ""), 1);
spawn(shell, NULL, NULL, F_CLI);
setenv(env_cfg[NNNLVL], xitoa(tmp ? atoi(tmp) : 0), 1);
setenv(env_cfg[NNNLVL], xitoa(r), 1);
r = TRUE;
break;
case SEL_LAUNCH:


불러오는 중...
취소
저장