Mercurial > vim
diff src/ex_docmd.c @ 17095:10e0d7d96cb0 v8.1.1547
patch 8.1.1547: functionality of bt_nofile() is confusing
commit https://github.com/vim/vim/commit/26910de8b0da6abab87bd5a397330f9cbe483309
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 15 19:37:15 2019 +0200
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().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Jun 2019 19:45:06 +0200 |
parents | 81b791a843bc |
children | af861fccc309 |
line wrap: on
line diff
--- 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 ) {