mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
Merge #4140 'vim-patch:7.4.771'.
This commit is contained in:
26
test/functional/legacy/search_mbyte_spec.lua
Normal file
26
test/functional/legacy/search_mbyte_spec.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
local helpers = require('test.functional.helpers')
|
||||
local insert = helpers.insert
|
||||
local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect
|
||||
|
||||
describe('search_mbyte', function()
|
||||
before_each(clear)
|
||||
|
||||
it("search('multi-byte char', 'bce')", function()
|
||||
insert([=[
|
||||
Results:
|
||||
|
||||
Test bce:
|
||||
A]=])
|
||||
|
||||
execute('/^Test bce:/+1')
|
||||
execute([[$put =search('A', 'bce', line('.'))]])
|
||||
|
||||
-- Assert buffer contents.
|
||||
expect([=[
|
||||
Results:
|
||||
|
||||
Test bce:
|
||||
A
|
||||
4]=])
|
||||
end)
|
||||
end)
|
||||
Reference in New Issue
Block a user