]> granicus.if.org Git - vim/commit
patch 8.0.0250: virtcol() does not work well for multi-byte characters v8.0.0250
authorBram Moolenaar <Bram@vim.org>
Sat, 28 Jan 2017 12:48:10 +0000 (13:48 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 28 Jan 2017 12:48:10 +0000 (13:48 +0100)
commit0c0590d9827cb07a33c1552cb3558b94bddcb4dc
tree9a4eb2d939907176500b19b938cba106d98bc676
parent4bc2f2e9fd73da4ba79cef83e4720e918981c483
patch 8.0.0250: virtcol() does not work well for multi-byte characters

Problem:    When virtcol() gets a column that is not the first byte of a
            multi-byte character the result is unpredictable. (Christian
            Ludwig)
Solution:   Correct the column to the first byte of a multi-byte character.
            Change the utf-8 test to new style.
src/Makefile
src/charset.c
src/testdir/Make_all.mak
src/testdir/test_alot_utf8.vim
src/testdir/test_utf8.in [deleted file]
src/testdir/test_utf8.ok [deleted file]
src/testdir/test_utf8.vim [new file with mode: 0644]
src/version.c