aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorJames Tirta Halim <tirtajames45@gmail.com>2024-06-03 11:00:20 +0700
committerLewis Russell <me@lewisr.dev>2024-06-04 09:42:19 +0100
commita18982cb839d7f05e32b1026bbd99b8aa34ad189 (patch)
treea2fcf7096210519d2f1397ab22b0200598350578 /src/nvim/buffer.c
parent2f5b8a009280eba995aecf67d1e8d99b7c72c51c (diff)
downloadrneovim-a18982cb839d7f05e32b1026bbd99b8aa34ad189.tar.gz
rneovim-a18982cb839d7f05e32b1026bbd99b8aa34ad189.tar.bz2
rneovim-a18982cb839d7f05e32b1026bbd99b8aa34ad189.zip
refactor: replace '\0' with NUL
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 5d0cd66133..c0fbc36787 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -4208,7 +4208,7 @@ int buf_open_scratch(handle_T bufnr, char *bufname)
bool buf_is_empty(buf_T *buf)
{
- return buf->b_ml.ml_line_count == 1 && *ml_get_buf(buf, 1) == '\0';
+ return buf->b_ml.ml_line_count == 1 && *ml_get_buf(buf, 1) == NUL;
}
/// Increment b:changedtick value