Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 4fa75be69245eb5723279793e4a587bb3848aa6c 1 parent 43c57b7
@xolox authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  autoload.vim
View
2  autoload.vim
@@ -105,7 +105,7 @@ function! publish#create_subst_cmd(tags_to_publish) " {{{1
endfor
let entry = a:tags_to_publish[name]
if g:publish_viml_sl_hack && get(entry, 'language') == 'Vim'
- let subpattern = '\s\(s:\|<[Ss][Ii][Dd]>\)' . name . '\s*('
+ let subpattern = '\s\(s:\|<[Ss][Ii][Dd]>\)' . xolox#escape#pattern(name) . '\s*('
if get(entry, 'cmd') =~ subpattern
if !exists('s:viml_sl_prefix')
let s:viml_sl_prefix = s:nasty()
Please sign in to comment.
Something went wrong with that request. Please try again.