diff options
| author | 2017-03-30 02:12:44 +0530 | |
|---|---|---|
| committer | 2017-03-30 02:12:44 +0530 | |
| commit | 5c7aaa6d0d10bdc1c1135b9a9cfd0d7e181303ef (patch) | |
| tree | 2141235ec01163fe7d86d2a6e9526963f91934a9 | |
| parent | b5e0023bfc0b4eed536eeda6c193755b8a414792 (diff) | |
| download | nnn-5c7aaa6d0d10bdc1c1135b9a9cfd0d7e181303ef.tar.gz | |
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.
| -rw-r--r-- | noice.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |