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/macros.h | |
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/macros.h')
-rw-r--r-- | src/nvim/macros.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h index dce1e73dfd..e1aa1b7704 100644 --- a/src/nvim/macros.h +++ b/src/nvim/macros.h @@ -34,10 +34,6 @@ /// LINEEMPTY() - return TRUE if the line is empty #define LINEEMPTY(p) (*ml_get(p) == NUL) -/// BUFEMPTY() - return TRUE if the current buffer is empty -#define BUFEMPTY(buf) ((buf)->b_ml.ml_line_count == 1 \ - && *ml_get_buf((buf), (linenr_T)1, false) == '\0') - // toupper() and tolower() that use the current locale. // Careful: Only call TOUPPER_LOC() and TOLOWER_LOC() with a character in the // range 0 - 255. toupper()/tolower() on some systems can't handle others. |