Skip to content

Commit

Permalink
Fix updating 'rtp' on Neovim (Fix #50)
Browse files Browse the repository at this point in the history
When a directory has space in its name, 'rtp' was not properly updated.
Use `let` instead of `set`.
  • Loading branch information
k-takata committed Feb 26, 2018
1 parent 0dc686a commit 81ab5fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autoload/minpac/impl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ function! s:job_exit_cb(id, errcode, event) dict abort

if has('nvim') && isdirectory(l:dir . '/rplugin')
" Required for :UpdateRemotePlugins.
exec 'set rtp+=' . l:dir
if empty(&rtp)
let &rtp = l:dir
else
let &rtp .= ',' . l:dir
endif
endif

call s:invoke_hook('post-update', [self.name], l:pluginfo.do)
Expand Down

0 comments on commit 81ab5fb

Please sign in to comment.