docs: small fixes (#35791)

Close #34938
Close #35030
Close #35233
Close #35259
Close #35290
Close #35433
Close #35541
Close #35766
Close #35792

Co-authored-by: huylg <45591413+huylg@users.noreply.github.com>
Co-authored-by: Jason Del Ponte <961963+jasdel@users.noreply.github.com>
Co-authored-by: sooriya <74165167+thuvasooriya@users.noreply.github.com>
Co-authored-by: Andrew Braxton <andrewcbraxton@gmail.com>
Co-authored-by: Enric Calabuig <enric.calabuig@gmail.com>
Co-authored-by: Augusto César Dias <augusto.c.dias@gmail.com>
Co-authored-by: David Sierra DiazGranados <davidsierradz@gmail.com>
Co-authored-by: Stepan Nikitin <90522882+vectravox@users.noreply.github.com>
Co-authored-by: Emilien Breton <bricktech2000@gmail.com>
This commit is contained in:
zeertzjq
2025-09-16 11:41:36 +08:00
committed by GitHub
parent e7ff132708
commit ff777f9a85
27 changed files with 40 additions and 43 deletions

View File

@@ -3854,7 +3854,7 @@ M.funcs = {
]=],
name = 'getcmdtype',
params = {},
returns = "':'|'>'|'/'|'?'|'@'|'-'|'='",
returns = "':'|'>'|'/'|'?'|'@'|'-'|'='|''",
signature = 'getcmdtype()',
},
getcmdwintype = {
@@ -3865,7 +3865,7 @@ M.funcs = {
]=],
name = 'getcmdwintype',
params = {},
returns = "':'|'>'|'/'|'?'|'@'|'-'|'='",
returns = "':'|'>'|'/'|'?'|'@'|'-'|'='|''",
signature = 'getcmdwintype()',
},
getcompletion = {

View File

@@ -3026,7 +3026,7 @@ int set_cpt_callbacks(optset_T *args)
}
}
if (!local) { // ':set' used insted of ':setlocal'
if (!local) { // ':set' used instead of ':setlocal'
// Cache the callback array
copy_cpt_callbacks(&cpt_cb, &cpt_cb_count, curbuf->b_p_cpt_cb,
curbuf->b_p_cpt_count);

View File

@@ -42,7 +42,7 @@ typedef enum {
kRetNilBool, ///< NIL preserved as such, other values return their booleanness
///< Should also be used when return value is ignored, as it is allocation-free
kRetLuaref, ///< return value becomes a single Luaref, regardless of type (except NIL)
kRetMulti, ///< like kRetObject but return muliple return values as an Array
kRetMulti, ///< like kRetObject but return multiple return values as an Array
} LuaRetMode;
/// Maximum number of errors in vim.ui_attach() and decor provider callbacks.

View File

@@ -3290,7 +3290,7 @@ void msg_ext_ui_flush(void)
ui_call_msg_show(cstr_as_string(msg_ext_kind), *tofree, msg_ext_overwrite, msg_ext_history,
msg_ext_append, msg_ext_id);
// clear info after emiting message.
// clear info after emitting message.
if (msg_ext_history) {
api_free_array(*tofree);
} else {

View File

@@ -2334,7 +2334,7 @@ local options = {
Each anchor line splits the buffer (the split happens above the
anchor), with each part being diff'ed separately before the final
result is joined. When more than one {address} are provided, the
anchors will be sorted interally by line number. If using buffer
anchors will be sorted internally by line number. If using buffer
local options, each buffer should have the same number of anchors
(extra anchors will be ignored). This option is only used when
'diffopt' has "anchor" set. See |diff-anchors| for more details and