From 701917173726395c29ed038e9869bc32819f38ff Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 4 Dec 2014 15:12:00 +0900 Subject: [PATCH] Fix #131 - Syntax error --- plug.vim | 2 +- test/workflow.vader | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index d7a3859..fe38c35 100644 --- a/plug.vim +++ b/plug.vim @@ -694,7 +694,7 @@ function! s:update_impl(pull, force, args) abort try call mkdir(g:plug_home, 'p') 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)) endtry endif diff --git a/test/workflow.vader b/test/workflow.vader index f2fd852..f23b780 100644 --- a/test/workflow.vader +++ b/test/workflow.vader @@ -1138,6 +1138,17 @@ Execute (#130 Proper cleanup of on-demand loading triggers): Assert !exists(':EmojiCommandExtra'), 'EmojiCommandExtra defined' Assert empty(mapcheck('(EmojiMappingExtra)')), '(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): silent! call system('rm -rf '.temp_plugged) silent! call system('rm -rf '.temp_plugged)