Apply patch from clason

This commit is contained in:
disrupted 2021-05-10 13:47:22 +02:00
parent e5c22f6347
commit 81dc647961
No known key found for this signature in database
GPG Key ID: A299EE8F816BBFA4

View File

@ -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;
}