Hi, On Thu, Apr 26, 2018 at 10:48 AM, Linwei <[email protected]> wrote: > The patch seems work , I verified my previous case and all the file names > are relative path names now. >
Thanks for verifying the patch. There is one performance issue with this approach. Every time the quickfix window is opened or refreshed, the code will try to shorten the path for every file name in the buffer list. Depending on the number of files in the buffer list, this may take some time. This can be optimized by doing this only for newly added files. - Yegappan > > And I write a test for this: > > copen > wincmd p > let cwd = getcwd() > > set errorformat=%f:%l:%m > > cexpr "" > > caddexpr "abc.txt:100: test" > caddexpr cwd . "/src/a.cpp:100: should be shorten" > caddexpr cwd . "/src/b.cpp:100: should be shorten" > caddexpr cwd . "/main/main.cpp:100: should be shorten" > -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
