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

patch 8.1.1813: ATTENTION prompt for a preview popup window

Problem:    ATTENTION prompt for a preview popup window.
Solution:   Close the popup window if aborting the buffer load.  Avoid getting
            the ATTENTION dialog.
This commit is contained in:
Bram Moolenaar
2019-08-04 20:44:19 +02:00
parent fb06d767a8
commit 2debf1c16b
6 changed files with 41 additions and 7 deletions

View File

@@ -4860,7 +4860,8 @@ findswapname(
* (happens when all .swp files are in one directory).
*/
if (!recoverymode && buf_fname != NULL
&& !buf->b_help && !(buf->b_flags & BF_DUMMY))
&& !buf->b_help
&& !(buf->b_flags & (BF_DUMMY | BF_NO_SEA)))
{
int fd;
struct block0 b0;