mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
buffer: move BUFEMPTY to a function
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user