lyuts / vim-rtags

Vim bindings for rtags, llvm/clang based c++ code indexer.
BSD 2-Clause "Simplified" License
282 stars 56 forks source link

Send absolute file paths to 'rc' command #80

Closed progician closed 6 years ago

progician commented 7 years ago

Currently all commands are using the '--absolute-path' command line option to the 'rc' command which means that a file location will be taken as absolute. However the rtags#getCurrentLocation() function we are using plain 'expand' which gives back the pwd relative path of the current buffer.

Add the ':p' modifier to the expand command in the rtags#getCurrentLocation() function so that it will pass absolute paths to the 'rc' command.