0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

patch 8.1.2180: Error E303 is not useful when 'directory' is empty

Problem:    Error E303 is not useful when 'directory' is empty.
Solution:   Skip the error message. (Daniel Hahler, #5067)
This commit is contained in:
Bram Moolenaar
2019-10-19 17:01:28 +02:00
parent b98678a974
commit 00e192becd
5 changed files with 13 additions and 4 deletions

View File

@@ -804,9 +804,9 @@ ml_open_file(buf_T *buf)
}
}
if (mfp->mf_fname == NULL) /* Failed! */
if (*p_dir != NUL && mfp->mf_fname == NULL)
{
need_wait_return = TRUE; /* call wait_return later */
need_wait_return = TRUE; // call wait_return later
++no_wait_return;
(void)semsg(_("E303: Unable to open swap file for \"%s\", recovery impossible"),
buf_spname(buf) != NULL ? buf_spname(buf) : buf->b_fname);