瀏覽代碼

Clear prompt after running a command.

master
Arun Prakash Jana 5 年之前
父節點
當前提交
05c84f7b80
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: A75979F35C080412
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. +10
    -0
      src/nnn.c

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

@@ -1976,6 +1976,16 @@ static int filterentries(char *path)
/* 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') && 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 */
while (len > 1)
wln[--len] = '\0';
wcstombs(ln, wln, REGEX_MAX);
ndents = total;
if (matches(pln) != -1)
redraw(path);

printprompt(ln);
continue; continue;
} }




||||||
x
 
000:0
Loading…
取消
儲存