To: vim_dev@googlegroups.com Subject: Patch 8.2.1296 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1296 Problem: Some part of using 'smarcase' was not tested. Solution: Add more tests. (Dominique Pellé, closes #6538) Files: src/testdir/test_search.vim *** ../vim-8.2.1295/src/testdir/test_search.vim 2020-07-11 22:14:54.318422203 +0200 --- src/testdir/test_search.vim 2020-07-26 13:25:08.841772054 +0200 *************** *** 608,614 **** endfunc func Test_search_cmdline7() ! " Test that an pressing in an empty command line " does not move the cursor CheckOption incsearch --- 608,614 ---- endfunc func Test_search_cmdline7() ! " Test that pressing in an empty command line " does not move the cursor CheckOption incsearch *************** *** 1642,1647 **** --- 1642,1666 ---- set ignorecase& smartcase& close! + endfun + + " Test 'smartcase' with utf-8. + func Test_search_smartcase_utf8() + new + let save_enc = &encoding + set encoding=utf8 ignorecase smartcase + + call setline(1, 'Café cafÉ') + 1s/café/x/g + call assert_equal('x x', getline(1)) + + call setline(1, 'Café cafÉ') + 1s/cafÉ/x/g + call assert_equal('Café x', getline(1)) + + set ignorecase& smartcase& + let &encoding = save_enc + close! endfunc " Test searching past the end of a file *** ../vim-8.2.1295/src/version.c 2020-07-26 12:52:53.556746191 +0200 --- src/version.c 2020-07-26 13:26:51.421283140 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1296, /**/ -- From "know your smileys": ;-0 Can't find shift key ,-9 Kann Umschalttaste nicht finden /// 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 ///