Closed ipod825 closed 2 years ago
thanks, but you have added the s:chdir
code in the wrong place and haven't consider the situation when -cwd=xxx
is not present.
I took your idea and implemented it in my way:
the new feature can be enabled by:
let g:asyncrun_pathfix = 1
Feed me back if you encounter same problem.
btw: not sure that frequently changing working directory is a good idea, so it is not enabled by default.
I would like to prevent relative paths in the qf window by making gcc output the absolute path.
Since each setqflist call decides the file path according to current value of getcwd(). We should set cwd every time we call setqflist.