aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/macros.h
diff options
context:
space:
mode:
authorKunMing Xie <qqzz014@gmail.com>2018-01-31 03:29:15 +0800
committerJustin M. Keyes <justinkz@gmail.com>2018-01-30 20:29:15 +0100
commit8728a5d50bc3339db81c7f29d59c55f9f817f06c (patch)
treee5ecd3e8bc2310d35889731dacf2cbcab38887dd /src/nvim/macros.h
parent2a1a624878ec70caf1e61b7440a6b9e4dce6c36f (diff)
downloadrneovim-8728a5d50bc3339db81c7f29d59c55f9f817f06c.tar.gz
rneovim-8728a5d50bc3339db81c7f29d59c55f9f817f06c.tar.bz2
rneovim-8728a5d50bc3339db81c7f29d59c55f9f817f06c.zip
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. https://github.com/vim/vim/commit/b5aedf3e228d35821591da9ae8501b61cf2e264c ref #6297
Diffstat (limited to 'src/nvim/macros.h')
-rw-r--r--src/nvim/macros.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h
index 0406574990..61834c6499 100644
--- a/src/nvim/macros.h
+++ b/src/nvim/macros.h
@@ -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)
/*