diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 17:53:00 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-07-15 18:27:21 +0800 |
commit | 4a64cdafd64198d3607fabaed8fc54e473614269 (patch) | |
tree | 7858c42069364b5becbf413685676e96be14e7ea /src/nvim/popupmnu.c | |
parent | 564d99c89a3d9a236df758d320cc38abc50215ec (diff) | |
download | rneovim-4a64cdafd64198d3607fabaed8fc54e473614269.tar.gz rneovim-4a64cdafd64198d3607fabaed8fc54e473614269.tar.bz2 rneovim-4a64cdafd64198d3607fabaed8fc54e473614269.zip |
vim-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().
https://github.com/vim/vim/commit/26910de8b0da6abab87bd5a397330f9cbe483309
Diffstat (limited to 'src/nvim/popupmnu.c')
-rw-r--r-- | src/nvim/popupmnu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/popupmnu.c b/src/nvim/popupmnu.c index ba151b5ce2..90c0b6f5c6 100644 --- a/src/nvim/popupmnu.c +++ b/src/nvim/popupmnu.c @@ -726,8 +726,7 @@ static int pum_set_selected(int n, int repeat) if (!resized && (curbuf->b_nwindows == 1) && (curbuf->b_fname == NULL) - && (curbuf->b_p_bt[0] == 'n') - && (curbuf->b_p_bt[2] == 'f') + && bt_nofile(curbuf) && (curbuf->b_p_bh[0] == 'w')) { // Already a "wipeout" buffer, make it empty. while (!buf_is_empty(curbuf)) { |