changeset 170:0e7ffc799cc5

Escape reserved Vim patterns in wildignore entries.
author Thaer <thaer.khawaja@gmail.com>
date Sun, 05 Feb 2017 22:32:56 -0800
parents 34c57ad6eb45
children 18df731b1563
files autoload/gutentags/ctags.vim
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/autoload/gutentags/ctags.vim	Sat Feb 18 21:57:52 2017 -0800
+++ b/autoload/gutentags/ctags.vim	Sun Feb 05 22:32:56 2017 -0800
@@ -145,7 +145,7 @@
         endif
         if g:gutentags_ctags_exclude_wildignore
             for ign in split(&wildignore, ',')
-                let l:cmd .= ' -x ' . '"' . ign . '"'
+                let l:cmd .= ' -x ' . shellescape(ign, 1)
             endfor
         endif
         for exc in g:gutentags_ctags_exclude