diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-17 23:24:12 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-17 23:24:12 +1200 |
commit | 1fe8a81874076b33e679584f9c82f437b6bfa3f4 (patch) | |
tree | 8df5b6571185c18ff0730ab2d402ddd8a0aaaac8 /vim | |
parent | Use slightly more readable quoting for regexes (diff) | |
download | dotfiles-1fe8a81874076b33e679584f9c82f437b6bfa3f4.tar.gz dotfiles-1fe8a81874076b33e679584f9c82f437b6bfa3f4.zip |
Correct variable reference
Diffstat (limited to 'vim')
-rw-r--r-- | vim/autoload/spellfile_local.vim | 2 |
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], '_.*', '', '') |