From adfb6dd2cbdc854296d696bfd4753a7f0290a4db Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Mon, 14 Nov 2011 22:11:40 +0100 Subject: [PATCH] Fix issue 3 from github --- autoload/SudoEdit.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/SudoEdit.vim b/autoload/SudoEdit.vim index e61db8d..fc1ee09 100644 --- a/autoload/SudoEdit.vim +++ b/autoload/SudoEdit.vim @@ -60,6 +60,10 @@ fu! SudoEdit#LocalSettings(setflag) "{{{2 " Force reading in the buffer " to avoid stuipd W13 warning sil e! % + " Make sure, persistent undo information is written + if has("persistent_undo") + exe "wundo" undofile(@%) + endif endif endfu