fmoralesc / vim-tutor-mode

interactive tutorials for vim
84 stars 4 forks source link

Error detected while processing function tutor#TutorCmd #8

Closed jjaderberg closed 9 years ago

jjaderberg commented 9 years ago

Running a command like :Tutor vim-pad fails with error message Error detected while processing function tutor#TutorCmd which calls globpath with the wrong number of arguments.

The globpath function was changed during 704. You have a version check before calling it in tutor#TutorCmd, but it is not sufficient to check for a version of 704 or above since the change happened in a patch and not with the original 704 release. I think the relevant patch is no 279 (http://ftp.vim.org/pub/vim/patches/7.4/README). Adding a test for has('patch-279') when the version is 704 worked for me.