浏览代码

Key \ only works in empty prompt

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

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

@@ -2074,13 +2074,12 @@ static int filterentries(char *path)
if (r == OK) { if (r == OK) {
/* Handle all control chars in main loop */ /* Handle all control chars in main loop */
if ((*ch < ASCII_MAX && keyname(*ch)[0] == '^' && *ch != '^') if ((*ch < ASCII_MAX && keyname(*ch)[0] == '^' && *ch != '^')
|| (*ch == '\\')) {
|| (*ch == '\\' && len == 1)) {
DPRINTF_D(*ch); DPRINTF_D(*ch);
DPRINTF_S(keyname(*ch)); DPRINTF_S(keyname(*ch));


/* If there's a filter, try a command on ^P */ /* If there's a filter, try a command on ^P */
if (cfg.filtercmd && (*ch == CONTROL('P') || *ch == '\\')
&& len > 1) {
if (cfg.filtercmd && *ch == CONTROL('P') && len > 1) {
prompt_run(pln, (ndents ? dents[cur].name : ""), path); prompt_run(pln, (ndents ? dents[cur].name : ""), path);


/* Clear the prompt */ /* Clear the prompt */


正在加载...
取消
保存