Hi Bram,
this patch checks, that the generated tmpdir does exist and not error 
out. For example when a cron job deletes the v* temporary directory 
(because it is too old). You can check this, if you manually delete the 
/tmp/v* directory for a running vim session and afterwards run something 
like :r !echo "foobar" or :echo system("echo foo")

With this patch, a new directory will be created, in case the old one 
does not exist anymore and no error message will be displayed.

chris...@r500vm ~/code/vim/src (hg)-[default]- % hg qdiff
diff --git a/src/fileio.c b/src/fileio.c
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -7353,7 +7353,7 @@
      * It's also a bit faster, because we only need to check for an existing
      * file when creating the directory and not for each temp file.
      */
-    if (vim_tempdir == NULL)
+    if (vim_tempdir == NULL || !mch_isdir(vim_tempdir))
     {
        /*
         * Try the entries in TEMPDIRNAMES to create the temp directory.


regards,
Christian

-- 
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

Raspunde prin e-mail lui