mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
spellfile.vim: use :keeppatterns before :global
This commit is contained in:
parent
73fabf4f15
commit
8cb77acb44
@ -88,8 +88,8 @@ function! spellfile#LoadFile(lang)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
if newbufnr == winbufnr(0)
|
if newbufnr == winbufnr(0)
|
||||||
" We are back the old buffer, remove any (half-finished) download.
|
" We are back to the old buffer, remove any (half-finished) download.
|
||||||
g/^/d_
|
keeppatterns g/^/d_
|
||||||
else
|
else
|
||||||
let newbufnr = winbufnr(0)
|
let newbufnr = winbufnr(0)
|
||||||
endif
|
endif
|
||||||
@ -127,7 +127,7 @@ function! spellfile#LoadFile(lang)
|
|||||||
exe "write " . dirname . '/' . fname
|
exe "write " . dirname . '/' . fname
|
||||||
|
|
||||||
" Also download the .sug file.
|
" Also download the .sug file.
|
||||||
g/^/d_
|
keeppatterns g/^/d_
|
||||||
let fname = substitute(fname, '\.spl$', '.sug', '')
|
let fname = substitute(fname, '\.spl$', '.sug', '')
|
||||||
echo 'Downloading ' . fname . '...'
|
echo 'Downloading ' . fname . '...'
|
||||||
call spellfile#Nread(fname)
|
call spellfile#Nread(fname)
|
||||||
|
Loading…
Reference in New Issue
Block a user