To: vim_dev@googlegroups.com Subject: Patch 7.4.1954 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.1954 (after 7.4.1948) Problem: No test for what 7.4.1948 fixes. Solution: Add a test. (Hirohito Higashi, closes #880) Files: src/Makefile, src/testdir/Make_all.mak, src/testdir/test_increment_dbcs.vim *** ../vim-7.4.1953/src/Makefile 2016-06-21 22:58:59.432069937 +0200 --- src/Makefile 2016-06-22 11:28:58.973654973 +0200 *************** *** 2031,2036 **** --- 2031,2037 ---- test_help_tagjump \ test_history \ test_increment \ + test_increment_dbcs \ test_join \ test_json \ test_langmap \ *** ../vim-7.4.1953/src/testdir/Make_all.mak 2016-06-21 22:58:59.432069937 +0200 --- src/testdir/Make_all.mak 2016-06-22 11:28:58.973654973 +0200 *************** *** 172,177 **** --- 172,178 ---- test_hardcopy.res \ test_history.res \ test_increment.res \ + test_increment_dbcs.res \ test_json.res \ test_langmap.res \ test_man.res \ *** ../vim-7.4.1953/src/testdir/test_increment_dbcs.vim 2016-06-26 16:23:47.857366776 +0200 --- src/testdir/test_increment_dbcs.vim 2016-06-26 16:21:57.551316346 +0200 *************** *** 0 **** --- 1,30 ---- + " Tests for using Ctrl-A/Ctrl-X using DBCS. + if !has('multi_byte') + finish + endif + set encoding=cp932 + scriptencoding cp932 + + func SetUp() + new + set nrformats& + endfunc + + func TearDown() + bwipe! + endfunc + + func Test_increment_dbcs_1() + set nrformats+=alpha + call setline(1, ["ŽR1"]) + exec "norm! 0\" + call assert_equal(["ŽR2"], getline(1, '$')) + call assert_equal([0, 1, 3, 0], getpos('.')) + + call setline(1, ["‚`‚a‚b0xDE‚e"]) + exec "norm! 0\" + call assert_equal(["‚`‚a‚b0xDD‚e"], getline(1, '$')) + call assert_equal([0, 1, 10, 0], getpos('.')) + endfunc + + " vim: shiftwidth=2 expandtab *** ../vim-7.4.1953/src/version.c 2016-06-26 14:37:47.275106573 +0200 --- src/version.c 2016-06-26 16:20:40.952669725 +0200 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 1954, /**/ -- hundred-and-one symptoms of being an internet addict: 131. You challenge authority and society by portnuking people /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///