aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-09 17:09:54 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-09 17:09:54 +1200
commite70873d465f8f2056199d35dd3f0f2f6ffa2b34a (patch)
treeab56e213fd1d228118c04d034d537194062a388f
parentMerge branch 'hotfix/v0.2.1' (diff)
parentBump VERSION (diff)
downloadvim-spellfile-local-e70873d465f8f2056199d35dd3f0f2f6ffa2b34a.tar.gz
vim-spellfile-local-e70873d465f8f2056199d35dd3f0f2f6ffa2b34a.zip
Merge branch 'hotfix/v0.2.2' into develop
* 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