patch 8.1.1547: functionality of bt_nofile() is confusing
Problem: Functionality of bt_nofile() is confusing.
Solution: Split into bt_nofile() and bt_nofilename().
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 91ced52..438cb35 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -9909,7 +9909,7 @@
&& wp->w_buffer->b_ffname != NULL
&& !bt_help(wp->w_buffer)
#ifdef FEAT_QUICKFIX
- && !bt_nofile(wp->w_buffer)
+ && !bt_nofilename(wp->w_buffer)
#endif
)
{
@@ -10236,7 +10236,7 @@
if (wp->w_buffer->b_fname == NULL
#ifdef FEAT_QUICKFIX
/* When 'buftype' is "nofile" can't restore the window contents. */
- || bt_nofile(wp->w_buffer)
+ || bt_nofilename(wp->w_buffer)
#endif
)
return (ssop_flags & SSOP_BLANK);
@@ -10323,7 +10323,7 @@
*/
if (wp->w_buffer->b_ffname != NULL
# ifdef FEAT_QUICKFIX
- && !bt_nofile(wp->w_buffer)
+ && !bt_nofilename(wp->w_buffer)
# endif
)
{