Browse files

s:Stat.get(): copy() return value to not be changed.

  • Loading branch information...
1 parent c99effc commit 5fe3a1fc91ca1d0ff2c04b9a439a511fec1cba07 @tyru committed Dec 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/simpletap.vim
View
2 autoload/simpletap.vim
@@ -609,7 +609,7 @@ function! {s:Stat.method('initialize')}(this) "{{{
endfunction "}}}
function! {s:Stat.method('get')}(this, varname) "{{{
- return a:this.vars[a:varname]
+ return copy(a:this.vars[a:varname])
endfunction "}}}
function! {s:Stat.method('set')}(this, varname, value) "{{{

0 comments on commit 5fe3a1f

Please sign in to comment.