summaryrefslogtreecommitdiff
path: root/src/testdir/test_utf8.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-28 23:27:20 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-28 23:27:20 +0200
commitb06a6d59d12dbd67d55b3c46f6e5547e9103c931 (patch)
treeab63210e60efda976b41b4486905cdc3da0b30ae /src/testdir/test_utf8.vim
parent4e4473c927167fd24e5c8df90e0e8035080cf2da (diff)
downloadvim-git-b06a6d59d12dbd67d55b3c46f6e5547e9103c931.tar.gz
patch 8.2.1537: memory acccess error when using setcellwidths()v8.2.1537
Problem: Memory acccess error when using setcellwidths(). Solution: Use array and pointers correctly.
Diffstat (limited to 'src/testdir/test_utf8.vim')
-rw-r--r--src/testdir/test_utf8.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testdir/test_utf8.vim b/src/testdir/test_utf8.vim
index b2b74599d..a1e97fd70 100644
--- a/src/testdir/test_utf8.vim
+++ b/src/testdir/test_utf8.vim
@@ -148,8 +148,8 @@ endfunc
func Test_setcellwidths()
call setcellwidths([
\ [0x1330, 0x1330, 2],
- \ [0x1337, 0x1339, 2],
\ [9999, 10000, 1],
+ \ [0x1337, 0x1339, 2],
\])
call assert_equal(2, strwidth("\u1330"))