diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-09 16:56:09 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-09 16:56:09 +1200 |
commit | a33746005f22b743d2c4a1ec8e2c836405f2436f (patch) | |
tree | c9d8e94d7b89395944f510b1b2bdaf6008242a33 /vim/vimrc | |
parent | Merge branch 'hotfix/v8.31.1' (diff) | |
download | dotfiles-a33746005f22b743d2c4a1ec8e2c836405f2436f.tar.gz dotfiles-a33746005f22b743d2c4a1ec8e2c836405f2436f.zip |
Make copies for map(), filter(), and reverse()
I really should have remembered this. Caused broken 'thesaurus'
entries, in this case.
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -2,7 +2,7 @@ " Tom Ryder (tejr)’s Literate Vimrc " ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ " -" Last updated: Mon, 04 May 2020 00:51:58 UTC +" Last updated: Sat, 09 May 2020 04:48:24 UTC " " │ And I was lifted up in heart, and thought " │ Of all my late-shown prowess in the lists, @@ -118,10 +118,12 @@ if xdg#['config']['home'] !=# '' endif if !empty(s:xdgconfigpaths) execute 'set runtimepath^='.option#Escape(join(map( - \ s:xdgconfigpaths, 'option#item#Escape(v:val)' + \ copy(s:xdgconfigpaths), + \ 'option#item#Escape(v:val)' \), ',')) execute 'set runtimepath+='.option#Escape(join(map( - \ reverse(s:xdgconfigpaths), 'option#item#Escape(v:val."/after")' + \ reverse(copy(s:xdgconfigpaths)), + \ 'option#item#Escape(v:val.''/after'')' \), ',')) endif unlet s:xdgconfigpaths @@ -419,10 +421,12 @@ endif if !empty(s:refdirs) try execute 'set dictionary^='.option#Escape(join(map( - \ s:refdirs, 'option#item#Escape(v:val."/dictionary.txt")' + \ copy(s:refdirs), + \ 'option#item#Escape(v:val.''/dictionary.txt'')' \), ',')) execute 'set thesaurus^='.option#Escape(join(map( - \ s:refdirs, 'option#item#Escape(v:val."/thesaurus.txt")' + \ copy(s:refdirs), + \ 'option#item#Escape(v:val.''/thesaurus.txt'')' \), ',')) catch /^Vim\%((\a\+)\)\=:E474:/ endtry |