lyuts / vim-rtags

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

Save full path to stack. #47

Closed chrisdiamand closed 7 years ago

chrisdiamand commented 8 years ago

Hi,

Returning to the previous location can fail if the previous file is in a different directory to the current one, because only the file's basename is stored in the location stack.

This patch fixes this by storing the fully qualified path in the stack.

E.g. after opening dirA/foo, then jumping to dirB/bar, trying to go back would make vim try and open dirB/foo, when it should be dirA/foo.

Cheers!

lyuts commented 7 years ago

Changed has been merged from the patch that you've emailed me.