mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
docs: fix typos (#21196)
Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Raphael <glephunter@gmail.com> Co-authored-by: Gregory Anders <greg@gpanders.com>
This commit is contained in:
@@ -61,7 +61,7 @@ before_each(function()
|
||||
endwhile
|
||||
return ret
|
||||
endfunction
|
||||
function SplittedMultibyteStart(cmdline)
|
||||
function SplitMultibyteStart(cmdline)
|
||||
let ret = []
|
||||
let i = 0
|
||||
while i < len(a:cmdline)
|
||||
@@ -77,7 +77,7 @@ before_each(function()
|
||||
endwhile
|
||||
return ret
|
||||
endfunction
|
||||
function SplittedMultibyteEnd(cmdline)
|
||||
function SplitMultibyteEnd(cmdline)
|
||||
let ret = []
|
||||
let i = 0
|
||||
while i < len(a:cmdline)
|
||||
@@ -296,7 +296,7 @@ describe('Command-line coloring', function()
|
||||
end
|
||||
it('does the right thing when hl start appears to split multibyte char',
|
||||
function()
|
||||
set_color_cb('SplittedMultibyteStart')
|
||||
set_color_cb('SplitMultibyteStart')
|
||||
start_prompt('echo "«')
|
||||
screen:expect{grid=[[
|
||||
|
|
||||
@@ -322,7 +322,7 @@ describe('Command-line coloring', function()
|
||||
end)
|
||||
it('does the right thing when hl end appears to split multibyte char',
|
||||
function()
|
||||
set_color_cb('SplittedMultibyteEnd')
|
||||
set_color_cb('SplitMultibyteEnd')
|
||||
start_prompt('echo "«')
|
||||
screen:expect([[
|
||||
|
|
||||
@@ -409,7 +409,7 @@ describe('Command-line coloring', function()
|
||||
]])
|
||||
end)
|
||||
it('stops executing callback after a number of errors', function()
|
||||
set_color_cb('SplittedMultibyteStart')
|
||||
set_color_cb('SplitMultibyteStart')
|
||||
start_prompt('let x = "«»«»«»«»«»"')
|
||||
screen:expect([[
|
||||
|
|
||||
@@ -772,7 +772,7 @@ describe('Ex commands coloring', function()
|
||||
]])
|
||||
end)
|
||||
it('still executes command-line even if errored out', function()
|
||||
meths.set_var('Nvim_color_cmdline', 'SplittedMultibyteStart')
|
||||
meths.set_var('Nvim_color_cmdline', 'SplitMultibyteStart')
|
||||
feed(':let x = "«"\n')
|
||||
eq('«', meths.get_var('x'))
|
||||
local msg = 'E5405: Chunk 0 start 10 splits multibyte character'
|
||||
|
||||
Reference in New Issue
Block a user