浏览代码

Continue in filter mode

master
Arun Prakash Jana 5 年前
父节点
当前提交
a1e2ef055e
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. +10
    -2
      src/nnn.c

+ 10
- 2
src/nnn.c 查看文件

@@ -5372,8 +5372,11 @@ nochange:
goto nochange; goto nochange;
} }


if (strcmp(path, dir) == 0) if (strcmp(path, dir) == 0) {
if (cfg.filtermode)
presel = FILTER;
goto nochange; goto nochange;
}


/* SEL_CDLAST: dir pointing to lastdir */ /* SEL_CDLAST: dir pointing to lastdir */
xstrlcpy(newpath, dir, PATH_MAX); xstrlcpy(newpath, dir, PATH_MAX);
@@ -6053,8 +6056,11 @@ nochange:
#endif #endif
if (tmp && *tmp) // NOLINT if (tmp && *tmp) // NOLINT
prompt_run(tmp, (ndents ? dents[cur].name : ""), path); prompt_run(tmp, (ndents ? dents[cur].name : ""), path);
else else {
if (cfg.filtermode)
presel = FILTER;
goto nochange; goto nochange;
}
} }


/* Continue in navigate-as-you-type mode, if enabled */ /* Continue in navigate-as-you-type mode, if enabled */
@@ -6100,6 +6106,8 @@ nochange:
goto nochange; goto nochange;
case SEL_AUTONEXT: case SEL_AUTONEXT:
g_states ^= STATE_AUTONEXT; g_states ^= STATE_AUTONEXT;
if (cfg.filtermode)
presel = FILTER;
goto nochange; goto nochange;
case SEL_QUITCTX: // fallthrough case SEL_QUITCTX: // fallthrough
case SEL_QUITCD: // fallthrough case SEL_QUITCD: // fallthrough


||||||
x
 
000:0
正在加载...
取消
保存