aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-03 15:44:21 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-03 15:44:21 +1200
commit8293c20476a36be8b7f0fb0c30c1a348370ed581 (patch)
treee6f991a0461962905aad8129467dda2232e38064
parentWrite v:null back out of XDG routines (diff)
downloaddotfiles-8293c20476a36be8b7f0fb0c30c1a348370ed581.tar.gz
dotfiles-8293c20476a36be8b7f0fb0c30c1a348370ed581.zip
Copy, don't reference XDG basedir lists
-rw-r--r--vim/vimrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index f4b0d329..33ac602e 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -2,7 +2,7 @@
" Tom Ryder (tejr)’s Literate Vimrc
" ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
"
-" Last updated: Sun, 03 May 2020 03:40:34 UTC
+" Last updated: Sun, 03 May 2020 03:44:03 UTC
"
" │ And I was lifted up in heart, and thought
" │ Of all my late-shown prowess in the lists,
@@ -107,7 +107,7 @@ endif
" directories to the end of it, in reverse order, forming the desired layers
" of configuration.
"
-let s:xdgconfigpaths = xdg#['config']['dirs']
+let s:xdgconfigpaths = copy(xdg#['config']['dirs'])
if xdg#['config']['home'] !=# ''
call insert(s:xdgconfigpaths, xdg#['config']['home'])
endif
@@ -410,7 +410,7 @@ set spellcapcheck=[.?!]\\%(\ \ \\\|[\\n\\r\\t]\\)
" 'isfname'; the blacklist is hard-coded.
"
set dictionary^=/usr/share/dict/words
-let s:refdirs = xdg#['data']['dirs']
+let s:refdirs = copy(xdg#['data']['dirs'])
if xdg#['data']['home'] !=# ''
call insert(s:refdirs, xdg#['data']['home'])
endif