Skip to content
Browse files

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

…tring.
  • Loading branch information...
1 parent a997ab3 commit 88aaba22b504d300b548f000fc425b78cb09adc7 @paddyoloughlin paddyoloughlin committed with scrooloose Jul 31, 2010
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

0 comments on commit 88aaba2

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