docs: typo fixes (#17859)

Co-authored-by: Elias Alves Moura <eliamoura.alves@gmail.com>
Co-authored-by: venkatesh <shariharanvenkatesh@gmail.com>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Vikas Raj <24727447+numToStr@users.noreply.github.com>
Co-authored-by: Steve Vermeulen <sfvermeulen@gmail.com>
Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Co-authored-by: rwxd <rwxd@pm.me>
Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
This commit is contained in:
dundargoc
2022-04-15 12:35:06 +02:00
committed by GitHub
parent 4503cb6b64
commit e63e5d1dbd
39 changed files with 48 additions and 54 deletions

View File

@@ -924,7 +924,7 @@ describe('API/extmarks', function()
eq(3, set_extmark(ns, 3, positions[2][1], positions[2][2]))
eq(4, set_extmark(ns, 0, positions[1][1], positions[1][2]))
-- mixing manual and allocated id:s are not recommened, but it should
-- mixing manual and allocated id:s are not recommended, but it should
-- do something reasonable
eq(6, set_extmark(ns, 6, positions[2][1], positions[2][2]))
eq(7, set_extmark(ns, 0, positions[1][1], positions[1][2]))

View File

@@ -251,7 +251,7 @@ describe("API: set highlight", function()
eq(highlight2_result, meths.get_hl_by_name('Test_hl', false))
end)
it ("can set emtpy cterm attr", function()
it ("can set empty cterm attr", function()
local ns = get_ns()
meths.set_hl(ns, 'Test_hl', { cterm = {} })
eq({}, meths.get_hl_by_name('Test_hl', false))

View File

@@ -1038,7 +1038,7 @@ describe('jobs', function()
local other_jobid = eval("jobstart(['cat', '-'], g:job_opts)")
local other_pid = eval('jobpid(' .. other_jobid .. ')')
-- Other job doesn't block first job from recieving SIGHUP on jobclose()
-- Other job doesn't block first job from receiving SIGHUP on jobclose()
command('call jobclose(j)')
-- Have to wait so that the SIGHUP can be processed by tty-test on time.
-- Can't wait for the next message in case this test fails, if it fails

View File

@@ -358,7 +358,7 @@ describe('startup', function()
end)
it("handles :packadd during startup", function()
-- control group: opt/bonus is not availabe by default
-- control group: opt/bonus is not available by default
pack_clear [[
try
let g:x = bonus#secret()

View File

@@ -173,7 +173,7 @@ for _, cmd in ipairs {'cd', 'chdir'} do
-- Change tab-local working directory and verify it is different
command('silent t' .. cmd .. ' ' .. directories.tab)
eq(globalDir .. pathsep .. directories.tab, cwd())
eq(cwd(), tcwd()) -- working directory maches tab directory
eq(cwd(), tcwd()) -- working directory matches tab directory
eq(1, tlwd())
eq(cwd(), wcwd()) -- still no window-directory
eq(0, wlwd())

View File

@@ -215,7 +215,7 @@ describe(':terminal highlight with custom palette', function()
clear()
screen = Screen.new(50, 7)
screen:set_default_attr_ids({
[1] = {foreground = tonumber('0x123456')}, -- no fg_indexed when overriden
[1] = {foreground = tonumber('0x123456')}, -- no fg_indexed when overridden
[2] = {foreground = 12},
[3] = {bold = true, reverse = true},
[5] = {background = 11},

View File

@@ -728,7 +728,7 @@ end]]
]]}
end)
it('can have virtual text which combines foreground and backround groups', function()
it('can have virtual text which combines foreground and background groups', function()
screen:set_default_attr_ids {
[1] = {bold=true, foreground=Screen.colors.Blue};
[2] = {background = tonumber('0x123456'), foreground = tonumber('0xbbbbbb')};

View File

@@ -1013,7 +1013,7 @@ vimComment xxx match /\s"[^\-:.%#=*].*$/ms=s+1,lc=1 excludenl contains=@vim
end)
it('redraws NOT_VALID correctly after message', function()
-- edge case: only one window was set NOT_VALID. Orginal report
-- edge case: only one window was set NOT_VALID. Original report
-- used :make, but fake it using one command to set the current
-- window NOT_VALID and another to show a long message.
command("set more")
@@ -1227,7 +1227,7 @@ describe('ui/msg_puts_printf', function()
pending('Locale ja_JP.UTF-8 not supported', function() end)
return
elseif helpers.isCI() then
-- Fails non--Windows CI. Message catalog direcotry issue?
-- Fails non--Windows CI. Message catalog directory issue?
pending('fails on unix CI', function() end)
return
end

View File

@@ -26,7 +26,7 @@ describe("multibyte rendering", function()
̊
x]])
feed("gg")
-- verify the modifier infact is alone
-- verify the modifier in fact is alone
feed_command("ascii")
screen:expect([[
^ ̊ |

View File

@@ -1952,7 +1952,7 @@ describe('builtin popupmenu', function()
]])
end)
it('wildoptions=pum with scrolled mesages ', function()
it('wildoptions=pum with scrolled messages ', function()
screen:try_resize(40,10)
command('set wildmenu')
command('set wildoptions=pum')
@@ -2191,7 +2191,7 @@ describe('builtin popupmenu', function()
{20:-- Keyword Local completion (^N^P) }{21:match 1 of 65} |
]])
-- can disable blending for indiviual attribute. For instance current
-- can disable blending for individual attribute. For instance current
-- selected item. (also tests that `hi Pmenu*` take immediate effect)
command('hi PMenuSel blend=0')
screen:expect([[

View File

@@ -544,7 +544,7 @@ function Screen:_wait(check, flags)
elseif not checked then
err = check()
if not err and flags.unchanged then
-- expecting NO screen change: use a shorter timout
-- expecting NO screen change: use a shorter timeout
success_seen = true
end
end

View File

@@ -471,7 +471,7 @@ describe('search highlighting', function()
{4:search hit BOTTOM, continuing at TOP} |
]])
-- check hilights work also in folds
-- check highlights work also in folds
feed("zf4j")
command("%foldopen")
screen:expect([[

View File

@@ -527,7 +527,7 @@ describe('systemlist()', function()
end)
-- Unlike `system()` which uses SOH to represent NULs, with `systemlist()`
-- input and ouput are the same.
-- input and output are the same.
describe('with linefeed characters inside list items', function()
it('converts linefeed characters to NULs', function()
eq({'l1\np2', 'line2\na\nb', 'l3'},