Mercurial > vim
comparison src/popupmnu.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 | 03f3a9ca2770 |
children | 8a095d343c59 |
comparison
equal
deleted
inserted
replaced
17094:8ca56a5c3141 | 17095:10e0d7d96cb0 |
---|---|
725 if (curwin->w_p_pvw) | 725 if (curwin->w_p_pvw) |
726 { | 726 { |
727 if (!resized | 727 if (!resized |
728 && curbuf->b_nwindows == 1 | 728 && curbuf->b_nwindows == 1 |
729 && curbuf->b_fname == NULL | 729 && curbuf->b_fname == NULL |
730 && curbuf->b_p_bt[0] == 'n' && curbuf->b_p_bt[2] == 'f' | 730 && bt_nofile(curbuf) |
731 && curbuf->b_p_bh[0] == 'w') | 731 && curbuf->b_p_bh[0] == 'w') |
732 { | 732 { |
733 /* Already a "wipeout" buffer, make it empty. */ | 733 /* Already a "wipeout" buffer, make it empty. */ |
734 while (!BUFEMPTY()) | 734 while (!BUFEMPTY()) |
735 ml_delete((linenr_T)1, FALSE); | 735 ml_delete((linenr_T)1, FALSE); |