diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-06-15 19:37:15 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-06-15 19:37:15 +0200 |
commit | 26910de8b0da6abab87bd5a397330f9cbe483309 (patch) | |
tree | 5a76a713818d0973f6774edabc17b8c13fb924fb /src/ex_docmd.c | |
parent | 0331faf71200a274377e1569fcda4f00c9cf3e2a (diff) | |
download | vim-git-26910de8b0da6abab87bd5a397330f9cbe483309.tar.gz |
patch 8.1.1547: functionality of bt_nofile() is confusingv8.1.1547
Problem: Functionality of bt_nofile() is confusing.
Solution: Split into bt_nofile() and bt_nofilename().
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 91ced52a5..438cb355a 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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 ) { |