diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-10-01 14:47:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-10-01 14:47:05 +0200 |
commit | 2ec618c9feac4573b154510236ad8121c77d0eca (patch) | |
tree | 5a0d1b003e7829d735719a7795c5cdeb9959a74d /runtime/autoload/gzip.vim | |
parent | b3435b0a3a0967115658d0a8c0224a28969cfa02 (diff) | |
download | vim-git-2ec618c9feac4573b154510236ad8121c77d0eca.tar.gz |
Updated runtime files.
Diffstat (limited to 'runtime/autoload/gzip.vim')
-rw-r--r-- | runtime/autoload/gzip.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/autoload/gzip.vim b/runtime/autoload/gzip.vim index a6b4605b0..e4adec094 100644 --- a/runtime/autoload/gzip.vim +++ b/runtime/autoload/gzip.vim @@ -1,6 +1,6 @@ " Vim autoload file for editing compressed files. " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2014 Nov 05 +" Last Change: 2016 Sep 28 " These functions are used by the gzip plugin. @@ -63,6 +63,9 @@ fun gzip#read(cmd) " set 'modifiable' let ma_save = &ma setlocal ma + " set 'write' + let write_save = &write + set write " Reset 'foldenable', otherwise line numbers get adjusted. if has("folding") let fen_save = &fen @@ -127,6 +130,7 @@ fun gzip#read(cmd) let &pm = pm_save let &cpo = cpo_save let &l:ma = ma_save + let &write = write_save if has("folding") let &l:fen = fen_save endif |