tpope / vim-apathy

apathy.vim: Set the 'path' option for miscellaneous file types
180 stars 9 forks source link

E108: No such variable: s:line #3

Closed justinmk closed 6 years ago

justinmk commented 6 years ago

In this line: https://github.com/tpope/vim-apathy/commit/4cce34e8b8920ca7c7fd0e1f2c12c18571743461#diff-6b9374746057b5cacf1f6e48cfd94a3dR4

for s:line in executable('cpp') ? split(system('cpp -v'), "\n") : []

If cpp isn't available (e.g. Windows) then s:line is not defined, so this line throws an error:

unlet s:active s:line