Mercurial > vim
view src/testdir/test_charsearch.in @ 6993:dcc108222d70 v7.4.814
patch 7.4.814
Problem: Illegal memory access with "sy match a fold".
Solution: Check for empty string. (Dominique Pelle)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 11 Aug 2015 15:27:13 +0200 |
parents | 814f1f569e4a |
children | dbfa0f9ab289 |
line wrap: on
line source
Test for character searches STARTTEST :so small.vim :" check that "fe" and ";" work /^X ylfep;;p,,p: :" check that save/restore works /^Y ylfep:let csave = getcharsearch() fip:call setcharsearch(csave) ;p;p: :" check that setcharsearch() changes the settins. /^Z ylfep:call setcharsearch({'char': 'k'}) ;p:call setcharsearch({'forward': 0}) $;p:call setcharseearch({'until'}: 1}) ;;p: :/^X/,$w! test.out :qa! ENDTEST Xabcdefghijkemnopqretuvwxyz Yabcdefghijkemnopqretuvwxyz Zabcdefghijkemnokqretkvwxyz