aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-09 17:09:32 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-09 17:09:32 +1200
commitcb792a082202bba673ccf0f6f58a8ce2cf44f070 (patch)
treeab56e213fd1d228118c04d034d537194062a388f
parentMerge branch 'hotfix/v0.2.1' (diff)
parentBump VERSION (diff)
downloadvim-spellfile-local-0.2.2.tar.gz (sig)
vim-spellfile-local-0.2.2.zip
Merge branch 'hotfix/v0.2.2'v0.2.2
* hotfix/v0.2.2: Copy list before mapping it for a join
-rw-r--r--VERSION2
-rw-r--r--autoload/spellfile_local.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/VERSION b/VERSION
index 0c62199..ee1372d 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.2.1
+0.2.2
diff --git a/autoload/spellfile_local.vim b/autoload/spellfile_local.vim
index 92ace4c..eba7358 100644
--- a/autoload/spellfile_local.vim
+++ b/autoload/spellfile_local.vim
@@ -111,7 +111,7 @@ endfunction
" Join a list of strings into a comma-separated option
function! s:OptionJoin(list) abort
return join(map(
- \ a:list,
+ \ copy(a:list),
\ 'substitute(v:val, ''\\\@<!,'', ''\\,'', ''g'')',
\), ',')
endfunction