Mercurial > vim
diff src/memline.c @ 18372:11394af51615 v8.1.2180
patch 8.1.2180: Error E303 is not useful when 'directory' is empty
Commit: https://github.com/vim/vim/commit/00e192becd50a38cb21a1bc3f86fcc7a21f8ee88
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 19 17:01:28 2019 +0200
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, https://github.com/vim/vim/issues/5067)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 19 Oct 2019 17:15:03 +0200 |
parents | 59bc3cd42cf5 |
children | 5c0437acebb7 |
line wrap: on
line diff
--- a/src/memline.c +++ b/src/memline.c @@ -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);