runtime(gzip): load undofile if there exists one
Commit:
https://github.com/vim/vim/commit/7e501f4d9986866382888e67d8f11faf5767c8f4
Author: Christian Brabandt <[email protected]>
Date: Tue Nov 26 15:10:33 2024 +0100
runtime(gzip): load undofile if there exists one
fixes: https://github.com/vim/vim/issues/16102
closes: https://github.com/vim/vim/issues/16122
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/autoload/gzip.vim b/runtime/autoload/gzip.vim
index 26b1cda03..a6fbe2c33 100644
--- a/runtime/autoload/gzip.vim
+++ b/runtime/autoload/gzip.vim
@@ -1,6 +1,6 @@
" Vim autoload file for editing compressed files.
" Maintainer: The Vim Project <https://github.com/vim/vim>
-" Last Change: 2023 Aug 10
+" Last Change: 2024 Nov 25
" Former Maintainer: Bram Moolenaar <[email protected]>
" These functions are used by the gzip plugin.
@@ -148,6 +148,9 @@ fun gzip#read(cmd)
else
let fname = escape(expand("%:r"), "
*?[{`$\%#'\"|!<")
endif
+ if filereadable(undofile(expand("%")))
+ exe "sil rundo " . fnameescape(undofile(expand("%")))
+ endif
if &verbose >= 8
execute "doau BufReadPost " . fname
else
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1tFwLL-006bxN-Hh%40256bit.org.