mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
test: charsearch: Fix error/typo in legacy test.
Error was reported upstream in vim/vim#650, fixed in 7.4.1366. Typo was fixed upstream in 7.4.1041.
This commit is contained in:
parent
4a02dc0828
commit
1b8caf3d75
@ -69,6 +69,8 @@ static char *features[] = {
|
||||
|
||||
// clang-format off
|
||||
static int included_patches[] = {
|
||||
1366,
|
||||
|
||||
// 1219 NA
|
||||
// 1218 NA
|
||||
// 1217 NA
|
||||
@ -247,7 +249,7 @@ static int included_patches[] = {
|
||||
// 1044 NA,
|
||||
// 1043 NA,
|
||||
// 1042,
|
||||
// 1041,
|
||||
1041,
|
||||
// 1040 NA,
|
||||
// 1039,
|
||||
// 1038 NA,
|
||||
|
@ -23,20 +23,20 @@ describe('charsearch', function()
|
||||
feed('fip')
|
||||
execute('call setcharsearch(csave)')
|
||||
feed(';p;p')
|
||||
-- Check that setcharsearch() changes the settins.
|
||||
-- Check that setcharsearch() changes the settings.
|
||||
execute('/^Z')
|
||||
feed('ylfep')
|
||||
execute("call setcharsearch({'char': 'k'})")
|
||||
feed(';p')
|
||||
execute("call setcharsearch({'forward': 0})")
|
||||
feed('$;p')
|
||||
execute("call setcharseearch({'until'}: 1})")
|
||||
execute("call setcharsearch({'until': 1})")
|
||||
feed(';;p')
|
||||
|
||||
-- Assert buffer contents.
|
||||
expect([[
|
||||
XabcdeXfghijkeXmnopqreXtuvwxyz
|
||||
YabcdeYfghiYjkeYmnopqreYtuvwxyz
|
||||
ZabcdeZfghijkZemnokZqretkZvwxyz]])
|
||||
ZabcdeZfghijkZZemnokqretkZvwxyz]])
|
||||
end)
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user