Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Escaped "value" parameter to initVariable, so it is a valid literal-s…

…tring.
  • Loading branch information...
commit 88aaba22b504d300b548f000fc425b78cb09adc7 1 parent a997ab3
@paddyoloughlin paddyoloughlin authored scrooloose committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  plugin/NERD_tree.vim
View
2  plugin/NERD_tree.vim
@@ -39,7 +39,7 @@ set cpo&vim
"1 if the var is set, 0 otherwise
function! s:initVariable(var, value)
if !exists(a:var)
- exec 'let ' . a:var . ' = ' . "'" . a:value . "'"
+ exec 'let ' . a:var . ' = ' . "'" . substitute(a:value, "'", "''", "g") . "'"
return 1
endif
return 0
Please sign in to comment.
Something went wrong with that request. Please try again.