diff options
author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-11-24 08:48:05 +0100 |
---|---|---|
committer | Thomas Vigouroux <tomvig38@gmail.com> | 2021-07-06 19:12:15 +0200 |
commit | 7970631fa01e95a41ba4520e030e6208c8fb3648 (patch) | |
tree | 60a6a82ffb1f5d0388cb816c68e2a31ead1cda2d /src/nvim/popupmnu.c | |
parent | 763c852812c8c7e819881a76a237b6f19920f803 (diff) | |
download | rneovim-7970631fa01e95a41ba4520e030e6208c8fb3648.tar.gz rneovim-7970631fa01e95a41ba4520e030e6208c8fb3648.tar.bz2 rneovim-7970631fa01e95a41ba4520e030e6208c8fb3648.zip |
buffer: move BUFEMPTY to a function
Diffstat (limited to 'src/nvim/popupmnu.c')
-rw-r--r-- | src/nvim/popupmnu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/popupmnu.c b/src/nvim/popupmnu.c index ef9346b6c8..1705ea0c12 100644 --- a/src/nvim/popupmnu.c +++ b/src/nvim/popupmnu.c @@ -9,6 +9,7 @@ #include <inttypes.h> #include <stdbool.h> +#include "nvim/buffer.h" #include "nvim/vim.h" #include "nvim/api/private/helpers.h" #include "nvim/ascii.h" @@ -735,7 +736,7 @@ static int pum_set_selected(int n, int repeat) && (curbuf->b_p_bt[2] == 'f') && (curbuf->b_p_bh[0] == 'w')) { // Already a "wipeout" buffer, make it empty. - while (!BUFEMPTY(curbuf)) { + while (!buf_is_empty(curbuf)) { ml_delete((linenr_T)1, false); } } else { |