mirror of
https://github.com/neovim/neovim.git
synced 2025-11-09 20:15:24 +00:00
tutor: avoid 'wildignore' pain
This commit is contained in:
@@ -258,9 +258,9 @@ endfunction
|
|||||||
|
|
||||||
function! s:GlobPath(lp, pat)
|
function! s:GlobPath(lp, pat)
|
||||||
if version >= 704 && has('patch279')
|
if version >= 704 && has('patch279')
|
||||||
return globpath(a:lp, a:pat, 0, 1)
|
return globpath(a:lp, a:pat, 1, 1)
|
||||||
else
|
else
|
||||||
return split(globpath(a:lp, a:pat, 0), '\n')
|
return split(globpath(a:lp, a:pat, 1), '\n')
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@@ -336,11 +336,7 @@ function! tutor#TutorCmd(tutor_name)
|
|||||||
let l:to_open = l:tutors[l:tutor_to_open-1]
|
let l:to_open = l:tutors[l:tutor_to_open-1]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has('gui') || has('nvim')
|
|
||||||
exe "drop ".l:to_open
|
|
||||||
else
|
|
||||||
exe "edit ".l:to_open
|
exe "edit ".l:to_open
|
||||||
endif
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! tutor#TutorCmdComplete(lead,line,pos)
|
function! tutor#TutorCmdComplete(lead,line,pos)
|
||||||
|
|||||||
Reference in New Issue
Block a user