diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-08-16 19:23:44 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-08-16 21:13:26 -0400 |
commit | 616b787d129b3550dc4b103868cf09e267195210 (patch) | |
tree | 58c4710e92655b3ca33199e3b9a06ed54bc31032 | |
parent | 521a9816d0f8447e8509b632e219687300779332 (diff) | |
download | rneovim-616b787d129b3550dc4b103868cf09e267195210.tar.gz rneovim-616b787d129b3550dc4b103868cf09e267195210.tar.bz2 rneovim-616b787d129b3550dc4b103868cf09e267195210.zip |
tutor: avoid 'wildignore' pain
-rw-r--r-- | runtime/autoload/tutor.vim | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/runtime/autoload/tutor.vim b/runtime/autoload/tutor.vim index 3ec6c7b34f..d2881f7f34 100644 --- a/runtime/autoload/tutor.vim +++ b/runtime/autoload/tutor.vim @@ -258,9 +258,9 @@ endfunction function! s:GlobPath(lp, pat) if version >= 704 && has('patch279') - return globpath(a:lp, a:pat, 0, 1) + return globpath(a:lp, a:pat, 1, 1) else - return split(globpath(a:lp, a:pat, 0), '\n') + return split(globpath(a:lp, a:pat, 1), '\n') endif endfunction @@ -336,11 +336,7 @@ function! tutor#TutorCmd(tutor_name) let l:to_open = l:tutors[l:tutor_to_open-1] endif - if has('gui') || has('nvim') - exe "drop ".l:to_open - else - exe "edit ".l:to_open - endif + exe "edit ".l:to_open endfunction function! tutor#TutorCmdComplete(lead,line,pos) |