소스 검색

Shows 'Cannot resolve path' on narrow terminal

noice truncates the cwd string dynamically. If the numbers of columns is lesser than the length of the path, cwd is truncated so that the correct path cannot be resolved. We should try to resolve the full path instead.
master
Arun Prakash Jana 7 년 전
부모
커밋
5c7aaa6d0d
No known key found for this signature in database GPG 키 ID: A75979F35C080412
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      noice.c

+ 1
- 1
noice.c 파일 보기

@@ -614,7 +614,7 @@ redraw(char *path)
ncols = PATH_MAX;
strlcpy(cwd, path, ncols);
cwd[ncols - strlen(CWD) - 1] = '\0';
if (!realpath(cwd, cwdresolved)) {
if (!realpath(path, cwdresolved)) {
printmsg("Cannot resolve path");
return;
}


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