diff options
author | James McCoy <jamessan@jamessan.com> | 2018-08-21 11:29:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-21 11:29:24 -0400 |
commit | 19aa8ccf85c45eb13efc622535f97a6049590d89 (patch) | |
tree | cc814912ee6f69023a1bc9054bbf3985b2c7b3f5 /src/nvim/memline.c | |
parent | 38075200015e0e47d930a0ac7550546fd4cb2f9e (diff) | |
parent | 822ae1a81c6dd3bf898323706261d6bcf7e75e11 (diff) | |
download | rneovim-19aa8ccf85c45eb13efc622535f97a6049590d89.tar.gz rneovim-19aa8ccf85c45eb13efc622535f97a6049590d89.tar.bz2 rneovim-19aa8ccf85c45eb13efc622535f97a6049590d89.zip |
Merge pull request #8879 from janlazo/vim-8.1.0303
[RDY] vim-patch:8.1.0303
Diffstat (limited to 'src/nvim/memline.c')
-rw-r--r-- | src/nvim/memline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c index 3d5f4e8f3a..fbd376641f 100644 --- a/src/nvim/memline.c +++ b/src/nvim/memline.c @@ -3955,7 +3955,7 @@ long ml_find_line_or_offset(buf_T *buf, linenr_T lnum, long *offp) /* Don't count the last line break if 'noeol' and ('bin' or * 'nofixeol'). */ if ((!buf->b_p_fixeol || buf->b_p_bin) && !buf->b_p_eol - && buf->b_ml.ml_line_count == lnum) { + && lnum > buf->b_ml.ml_line_count) { size -= ffdos + 1; } } |