aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordisrupted <hi@salomonpopp.me>2021-05-10 13:47:22 +0200
committerdisrupted <hi@salomonpopp.me>2021-05-10 13:47:22 +0200
commit81dc64796106e61f197822f9b8d2f2ae37174559 (patch)
tree5f813a6e8d4b7e2654de09351e67164911b02033
parente5c22f6347771ed2f303a6f29811201234a34b6a (diff)
downloadrneovim-81dc64796106e61f197822f9b8d2f2ae37174559.tar.gz
rneovim-81dc64796106e61f197822f9b8d2f2ae37174559.tar.bz2
rneovim-81dc64796106e61f197822f9b8d2f2ae37174559.zip
Apply patch from clason
-rw-r--r--src/nvim/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index ca68ef04b0..0ed116c17f 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -6307,7 +6307,7 @@ bcount_t get_region_bytecount(buf_T *buf, linenr_T start_lnum,
linenr_T end_lnum, colnr_T start_col,
colnr_T end_col)
{
- linenr_T max_lnum = buf->b_ml.ml_line_lnum;
+ linenr_T max_lnum = buf->b_ml.ml_line_count;
if (start_lnum > max_lnum) {
return 0;
}