view src/testdir/test_charsearch.in @ 7376:88843d12c82b v7.4.993

commit https://github.com/vim/vim/commit/52f6ae1366b34fc5771595c0bd17c779a7f6f544 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 29 16:34:06 2015 +0100 patch 7.4.993 Problem: Test 87 is flaky on AppVeyor. Solution: Reduce the minimum background thread count.
author Christian Brabandt <cb@256bit.org>
date Tue, 29 Dec 2015 16:45:04 +0100
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