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:
dundargoc
2022-11-29 02:45:48 +01:00
committed by GitHub
parent 0badfaa6d0
commit 615f124003
15 changed files with 36 additions and 34 deletions

View File

@@ -810,7 +810,7 @@ describe('API: buffer events:', function()
local newlines = args[5]
-- Size of the contained nvim instance is 23 lines, this might change
-- with the test setup. Note updates are continguous.
-- with the test setup. Note updates are contiguous.
assert(#newlines <= 23)
for i = 1,#newlines do

View File

@@ -19,26 +19,26 @@ describe('API', function()
-- Might be non-zero already (left-over from some other test?),
-- but this is not what is tested here.
local initial_childs = request('nvim_get_proc_children', this_pid)
local initial_children = request('nvim_get_proc_children', this_pid)
local job1 = funcs.jobstart(nvim_argv)
retry(nil, nil, function()
eq(#initial_childs + 1, #request('nvim_get_proc_children', this_pid))
eq(#initial_children + 1, #request('nvim_get_proc_children', this_pid))
end)
local job2 = funcs.jobstart(nvim_argv)
retry(nil, nil, function()
eq(#initial_childs + 2, #request('nvim_get_proc_children', this_pid))
eq(#initial_children + 2, #request('nvim_get_proc_children', this_pid))
end)
funcs.jobstop(job1)
retry(nil, nil, function()
eq(#initial_childs + 1, #request('nvim_get_proc_children', this_pid))
eq(#initial_children + 1, #request('nvim_get_proc_children', this_pid))
end)
funcs.jobstop(job2)
retry(nil, nil, function()
eq(#initial_childs, #request('nvim_get_proc_children', this_pid))
eq(#initial_children, #request('nvim_get_proc_children', this_pid))
end)
end)

View File

@@ -3042,7 +3042,7 @@ describe('API', function()
meths.buf_set_mark(buf, 'F', 2, 2, {})
meths.buf_set_name(buf, "mybuf")
local mark = meths.get_mark('F', {})
-- Compare the path tail ony
-- Compare the path tail only
assert(string.find(mark[4], "mybuf$"))
eq({2, 2, buf.id, mark[4]}, mark)
end)