aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-10-23 22:25:35 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-11-06 01:56:04 +0100
commit8cb77acb44c4e9be12a301ce347dd6e5d76dfa61 (patch)
treeff96f612571c1eb2fc65c5546a18bb5206b91712
parent73fabf4f150e1f4e2da523b6c60b8b90797df4d2 (diff)
downloadrneovim-8cb77acb44c4e9be12a301ce347dd6e5d76dfa61.tar.gz
rneovim-8cb77acb44c4e9be12a301ce347dd6e5d76dfa61.tar.bz2
rneovim-8cb77acb44c4e9be12a301ce347dd6e5d76dfa61.zip
spellfile.vim: use :keeppatterns before :global
-rw-r--r--runtime/autoload/spellfile.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/autoload/spellfile.vim b/runtime/autoload/spellfile.vim
index a5ffa514ea..fe7113b9a4 100644
--- a/runtime/autoload/spellfile.vim
+++ b/runtime/autoload/spellfile.vim
@@ -88,8 +88,8 @@ function! spellfile#LoadFile(lang)
endif
endif
if newbufnr == winbufnr(0)
- " We are back the old buffer, remove any (half-finished) download.
- g/^/d_
+ " We are back to the old buffer, remove any (half-finished) download.
+ keeppatterns g/^/d_
else
let newbufnr = winbufnr(0)
endif
@@ -127,7 +127,7 @@ function! spellfile#LoadFile(lang)
exe "write " . dirname . '/' . fname
" Also download the .sug file.
- g/^/d_
+ keeppatterns g/^/d_
let fname = substitute(fname, '\.spl$', '.sug', '')
echo 'Downloading ' . fname . '...'
call spellfile#Nread(fname)