summaryrefslogtreecommitdiff
path: root/src/testdir/test_textprop.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-26 23:42:10 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-26 23:42:10 +0100
commit00b1e041654e8a38fb6b81218a037e1dc94e0943 (patch)
treecc89e87c49d55bb9e463fad7ab0a0f73068c6f9a /src/testdir/test_textprop.vim
parente6fdf79980c0f2856700d4f46de700293f477429 (diff)
downloadvim-git-00b1e041654e8a38fb6b81218a037e1dc94e0943.tar.gz
patch 8.1.0643: computing byte offset wrongv8.1.0643
Problem: Computing byte offset wrong. (Bjorn Linse) Solution: Use the right variable for array index.
Diffstat (limited to 'src/testdir/test_textprop.vim')
-rw-r--r--src/testdir/test_textprop.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_textprop.vim b/src/testdir/test_textprop.vim
index ccf7d2846..e63ce6bf0 100644
--- a/src/testdir/test_textprop.vim
+++ b/src/testdir/test_textprop.vim
@@ -229,11 +229,11 @@ endfunc
func Test_prop_byteoff()
call prop_type_add('comment', {'highlight': 'Directory'})
new
- call setline(1, ['line1', 'line2', ''])
+ call setline(1, ['line1', 'second line', ''])
set ff=unix
- call assert_equal(13, line2byte(3))
+ call assert_equal(19, line2byte(3))
call prop_add(1, 1, {'end_col': 3, 'type': 'comment'})
- call assert_equal(13, line2byte(3))
+ call assert_equal(19, line2byte(3))
bwipe!
call prop_type_delete('comment')