Resolve symlinks before running helptags

Helptags seems to fail if some of the path components it receives are
symlinks. So resolve the symlink when calling helptags.
This commit is contained in:
Jacobo de Vera 2013-11-07 00:07:10 +00:00
parent 4b75412462
commit 08e9894d2a

View File

@ -202,7 +202,7 @@ func! s:helptags(rtp) abort
let doc_path = a:rtp.'/doc/'
call s:log(':helptags '.doc_path)
try
execute 'helptags ' . doc_path
execute 'helptags ' . resolve(doc_path)
catch
call s:log("> Error running :helptags ".doc_path)
return 0