]> granicus.if.org Git - vim/commit
patch 8.1.0303: line2byte() is wrong for last line with 'noeol' v8.1.0303
authorBram Moolenaar <Bram@vim.org>
Mon, 20 Aug 2018 20:53:04 +0000 (22:53 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 20 Aug 2018 20:53:04 +0000 (22:53 +0200)
commitc26f7c60532a37a2bf0a5e69aa81081b440dfc38
tree4a717b3db6cc51d60cb286af087ee0e7e1eeba6a
parentf1883479be91550bc31dd88f593b3012863a2629
patch 8.1.0303: line2byte() is wrong for last line with 'noeol'

Problem:    line2byte() is wrong for last line with 'noeol' and 'nofixeol'.
Solution:   Fix off-by-one error. (Shane Harper, closes #3351)
src/memline.c
src/testdir/test_functions.vim
src/version.c