diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-11-06 05:04:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-06 05:04:37 +0100 |
commit | d31b94ac209d2161f60084d5fa1e18f0cbaf0207 (patch) | |
tree | 9afbf06aaa972109fb218f56e6f3ba06ba7cd6d3 /runtime/autoload | |
parent | 04b3c327723587fa63f391884b8dfce44233cc77 (diff) | |
parent | 280943d9b938e95fcf77ef5290576630b84511fb (diff) | |
download | rneovim-d31b94ac209d2161f60084d5fa1e18f0cbaf0207.tar.gz rneovim-d31b94ac209d2161f60084d5fa1e18f0cbaf0207.tar.bz2 rneovim-d31b94ac209d2161f60084d5fa1e18f0cbaf0207.zip |
Merge #7188 from justinmk/doc
doc; minor runtime bug fixes
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/spellfile.vim | 6 |
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) |