mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user