mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
vim-patch:8.0.0448: some macros are lower case (#7936)
Problem: Some macros are in lower case, which can be confusing.
Solution: Make a few lower case macros upper case.
b5aedf3e22
ref #6297
This commit is contained in:

committed by
Justin M. Keyes

parent
2a1a624878
commit
8728a5d50b
@@ -28,15 +28,11 @@
|
||||
/// @return `s, sizeof(s) - 1`
|
||||
#define S_LEN(s) (s), (sizeof(s) - 1)
|
||||
|
||||
/*
|
||||
* lineempty() - return TRUE if the line is empty
|
||||
*/
|
||||
#define lineempty(p) (*ml_get(p) == NUL)
|
||||
/// 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() (curbuf->b_ml.ml_line_count == 1 && *ml_get((linenr_T)1) == \
|
||||
/// BUFEMPTY() - return TRUE if the current buffer is empty
|
||||
#define BUFEMPTY() (curbuf->b_ml.ml_line_count == 1 && *ml_get((linenr_T)1) == \
|
||||
NUL)
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user