aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/buffer.h')
-rw-r--r--src/nvim/buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.h b/src/nvim/buffer.h
index 2351ddc61b..2b0e6b2525 100644
--- a/src/nvim/buffer.h
+++ b/src/nvim/buffer.h
@@ -138,7 +138,7 @@ static inline void buf_inc_changedtick(buf_T *const buf)
static inline bool buf_is_empty(buf_T *buf)
{
return buf->b_ml.ml_line_count == 1
- && *ml_get_buf(buf, (linenr_T)1) == '\0';
+ && *ml_get_buf(buf, 1) == '\0';
}
#endif // NVIM_BUFFER_H