Fix #131 - Syntax error
This commit is contained in:
parent
044c3a67c4
commit
7019171737
2
plug.vim
2
plug.vim
|
@ -694,7 +694,7 @@ function! s:update_impl(pull, force, args) abort
|
||||||
try
|
try
|
||||||
call mkdir(g:plug_home, 'p')
|
call mkdir(g:plug_home, 'p')
|
||||||
catch
|
catch
|
||||||
return s:err(printf('Invalid plug directory: %s.'
|
return s:err(printf('Invalid plug directory: %s. '.
|
||||||
\ 'Try to call plug#begin with a valid directory', g:plug_home))
|
\ 'Try to call plug#begin with a valid directory', g:plug_home))
|
||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -1138,6 +1138,17 @@ Execute (#130 Proper cleanup of on-demand loading triggers):
|
||||||
Assert !exists(':EmojiCommandExtra'), 'EmojiCommandExtra defined'
|
Assert !exists(':EmojiCommandExtra'), 'EmojiCommandExtra defined'
|
||||||
Assert empty(mapcheck('<Plug>(EmojiMappingExtra)')), '<Plug>(EmojiMappingExtra) defined'
|
Assert empty(mapcheck('<Plug>(EmojiMappingExtra)')), '<Plug>(EmojiMappingExtra) defined'
|
||||||
|
|
||||||
|
**********************************************************************
|
||||||
|
Execute (#131 Syntax error):
|
||||||
|
call plug#begin('/no-permission')
|
||||||
|
Plug 'junegunn/vim-emoji'
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
redir => out
|
||||||
|
silent PlugInstall
|
||||||
|
redir END
|
||||||
|
Assert out =~ 'Invalid plug directory: /no-permission'
|
||||||
|
|
||||||
Execute (Cleanup):
|
Execute (Cleanup):
|
||||||
silent! call system('rm -rf '.temp_plugged)
|
silent! call system('rm -rf '.temp_plugged)
|
||||||
silent! call system('rm -rf '.temp_plugged)
|
silent! call system('rm -rf '.temp_plugged)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user