0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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().
This commit is contained in:
Bram Moolenaar
2019-06-15 19:37:15 +02:00
parent 0331faf712
commit 26910de8b0
9 changed files with 26 additions and 14 deletions

View File

@@ -9909,7 +9909,7 @@ makeopens(
&& 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 @@ ses_do_win(win_T *wp)
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 @@ put_view(
*/
if (wp->w_buffer->b_ffname != NULL
# ifdef FEAT_QUICKFIX
&& !bt_nofile(wp->w_buffer)
&& !bt_nofilename(wp->w_buffer)
# endif
)
{