From 616b787d129b3550dc4b103868cf09e267195210 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 16 Aug 2015 19:23:44 -0400 Subject: tutor: avoid 'wildignore' pain --- runtime/autoload/tutor.vim | 10 +++------- 1 file 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) -- cgit