aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-17 23:24:12 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-17 23:24:12 +1200
commit1fe8a81874076b33e679584f9c82f437b6bfa3f4 (patch)
tree8df5b6571185c18ff0730ab2d402ddd8a0aaaac8
parentUse slightly more readable quoting for regexes (diff)
downloaddotfiles-1fe8a81874076b33e679584f9c82f437b6bfa3f4.tar.gz
dotfiles-1fe8a81874076b33e679584f9c82f437b6bfa3f4.zip
Correct variable reference
-rw-r--r--vim/autoload/spellfile_local.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/autoload/spellfile_local.vim b/vim/autoload/spellfile_local.vim
index e4759737..f3d9b987 100644
--- a/vim/autoload/spellfile_local.vim
+++ b/vim/autoload/spellfile_local.vim
@@ -22,7 +22,7 @@ function! spellfile_local#() abort
set spellfile<
let spelllangs = s:SplitOption(&spelllang)
- if !len(spelllangs) || &spelllang[0] ==# ''
+ if !len(spelllangs) || spelllangs[0] ==# ''
echoerr 'Blank ''spelllang'''
endif
let spelllang = substitute(spelllangs[0], '_.*', '', '')