aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorIngo Karkat <swdev@ingo-karkat.de>2014-06-23 17:54:20 +0200
committerIngo Karkat <swdev@ingo-karkat.de>2014-06-23 17:54:20 +0200
commit02e772a7565db208c197a07885686b729fa7e237 (patch)
tree1911868a5fe643a5278b44fe3d09141119aaf762 /autoload
parent27c29aa6a6b558b2f917a0c661fb4804bcdeb05e (diff)
downloadvim-easytags-02e772a7565db208c197a07885686b729fa7e237.tar.gz
FIX: Ensure full absolute tagsfile filespec in async mode.
On Windows, tagfiles() can return a filespec that is absolute to the current drive (i.e. \foo\bar\tags). In async mode, the forked Vim process may have another current drive, so it should be ensured that the filespec is a full one, including the drive letter: D:\foo\bar\tags.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/xolox/easytags.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim
index 213175d..001a81f 100644
--- a/autoload/xolox/easytags.vim
+++ b/autoload/xolox/easytags.vim
@@ -173,7 +173,7 @@ function! xolox#easytags#update(silent, filter_tags, filenames) " {{{2
let params['directory'] = xolox#misc#path#absolute(g:easytags_by_filetype)
let params['filetypes'] = g:xolox#easytags#filetypes#ctags_to_vim
else
- let params['tagsfile'] = tagsfile
+ let params['tagsfile'] = (async ? fnamemodify(tagsfile, ':p') : tagsfile) " Need to pass full absolute path to the forked process.
endif
if async
call xolox#misc#async#call({'function': 'xolox#easytags#update#with_vim', 'arguments': [params], 'callback': 'xolox#easytags#async_callback'})