diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-05-10 23:18:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-10 23:18:14 +0200 |
commit | 133351cbf80d620513eb6eb1b63eae15312eaeed (patch) | |
tree | 6d802166ca54239e24568224994e8bfbcda47b5f /src/nvim/ops.c | |
parent | 7b0edaac56c7649a104de01ac25f7bd97d408fea (diff) | |
parent | 81dc64796106e61f197822f9b8d2f2ae37174559 (diff) | |
download | rneovim-133351cbf80d620513eb6eb1b63eae15312eaeed.tar.gz rneovim-133351cbf80d620513eb6eb1b63eae15312eaeed.tar.bz2 rneovim-133351cbf80d620513eb6eb1b63eae15312eaeed.zip |
Merge pull request #14528 from disrupted/fix/nvim_buf_set_lines
Fix nvim_buf_set_lines
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 2 |
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; } |