Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bug fix: Proper escaping in create_subst_cmd() to avoid E33

  • Loading branch information...
commit 4fa75be69245eb5723279793e4a587bb3848aa6c 1 parent 43c57b7
Peter Odding authored August 31, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  autoload.vim
2  autoload.vim
@@ -105,7 +105,7 @@ function! publish#create_subst_cmd(tags_to_publish) " {{{1
105 105
     endfor
106 106
     let entry = a:tags_to_publish[name]
107 107
     if g:publish_viml_sl_hack && get(entry, 'language') == 'Vim'
108  
-      let subpattern = '\s\(s:\|<[Ss][Ii][Dd]>\)' . name . '\s*('
  108
+      let subpattern = '\s\(s:\|<[Ss][Ii][Dd]>\)' . xolox#escape#pattern(name) . '\s*('
109 109
       if get(entry, 'cmd') =~ subpattern
110 110
         if !exists('s:viml_sl_prefix')
111 111
           let s:viml_sl_prefix = s:nasty()

0 notes on commit 4fa75be

Please sign in to comment.
Something went wrong with that request. Please try again.