mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
refactor: replace '\0' with NUL
This commit is contained in:

committed by
Lewis Russell

parent
2f5b8a0092
commit
a18982cb83
@@ -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
|
||||
|
Reference in New Issue
Block a user