From 39a689d4af0212814841e65f9a8f285032e5bac9 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 10 Mar 2019 00:44:40 +0300 Subject: [PATCH] .vim/plugin/tmpwatch.vim: Do not remove file from the current directory --- .vim/plugin/tmpwatch.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vim/plugin/tmpwatch.vim b/.vim/plugin/tmpwatch.vim index 98a7062..cdd1be0 100644 --- a/.vim/plugin/tmpwatch.vim +++ b/.vim/plugin/tmpwatch.vim @@ -14,7 +14,7 @@ function Tmpwatch(path, days) endfunction " undofile part of your .vimrc -if exists("+undofile") +if exists("+undofile") && !empty(&undodir) && (&undodir != '.') " remove undo files which have not been modified for 31 days call Tmpwatch(&undodir, 31) endif -- 2.39.5