소스 검색

Clear prompt after running a command.

master
Arun Prakash Jana 4 년 전
부모
커밋
05c84f7b80
No known key found for this signature in database GPG 키 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 (cfg.filtercmd && *ch == CONTROL('P') && len > 1) {
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;
}



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