1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2025-12-20 04:47:59 +01:00

made sure g:snippets_dir is always an absolute path

This commit is contained in:
Michael Sanders
2009-03-25 02:32:16 -04:00
parent 319292a669
commit 75b87b7473

View File

@@ -14,7 +14,7 @@ snor <left> <esc>bi
" By default load snippets in ~/.vim/snippets/<filetype> " By default load snippets in ~/.vim/snippets/<filetype>
if !exists('snippets_dir') if !exists('snippets_dir')
let snippets_dir = finddir('snippets', &rtp).'/' let snippets_dir = fnamemodify(finddir('snippets', &rtp), ':p')
endif endif
if empty(snippets_dir) | finish | endif if empty(snippets_dir) | finish | endif