mirror of
https://github.com/neovim/neovim.git
synced 2025-10-13 13:26:06 +00:00
docs: fix typos (#20394)
Co-authored-by: Raphael <glephunter@gmail.com> Co-authored-by: smjonas <jonas.strittmatter@gmx.de> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
@@ -202,7 +202,7 @@ _ERROR_CATEGORIES = [
|
||||
'whitespace/cast',
|
||||
]
|
||||
|
||||
# The default state of the category filter. This is overrided by the --filter=
|
||||
# The default state of the category filter. This is overridden by the --filter=
|
||||
# flag. By default all errors are on, so only add here categories that should be
|
||||
# off by default (i.e., categories that must be enabled by the --filter= flags).
|
||||
# All entries here should start with a '-' or '+', as in the --filter= flag.
|
||||
|
@@ -389,7 +389,7 @@ Array nvim_buf_get_extmarks(Buffer buffer, Integer ns_id, Object start, Object e
|
||||
/// - virt_text : virtual text to link to this mark.
|
||||
/// A list of [text, highlight] tuples, each representing a
|
||||
/// text chunk with specified highlight. `highlight` element
|
||||
/// can either be a a single highlight group, or an array of
|
||||
/// can either be a single highlight group, or an array of
|
||||
/// multiple highlight groups that will be stacked
|
||||
/// (highest priority last). A highlight group can be supplied
|
||||
/// either as a string or as an integer, the latter which
|
||||
|
@@ -430,7 +430,7 @@ Object nvim_win_call(Window window, LuaRef fun, Error *err)
|
||||
/// Set highlight namespace for a window. This will use highlights defined in
|
||||
/// this namespace, but fall back to global highlights (ns=0) when missing.
|
||||
///
|
||||
/// This takes predecence over the 'winhighlight' option.
|
||||
/// This takes precedence over the 'winhighlight' option.
|
||||
///
|
||||
/// @param ns_id the namespace to use
|
||||
/// @param[out] err Error details, if any
|
||||
|
@@ -999,7 +999,7 @@ int copy_indent(int size, char *src)
|
||||
/// "second_line_indent": indent for after ^^D in Insert mode or if flag
|
||||
/// OPENLINE_COM_LIST
|
||||
/// "did_do_comment" is set to true when intentionally putting the comment
|
||||
/// leader in fromt of the new line.
|
||||
/// leader in front of the new line.
|
||||
///
|
||||
/// @param dir FORWARD or BACKWARD
|
||||
///
|
||||
|
@@ -650,7 +650,7 @@ static inline unsigned nr2hex(unsigned n)
|
||||
///
|
||||
/// @param b
|
||||
///
|
||||
/// @reeturn Number of display cells.
|
||||
/// @return Number of display cells.
|
||||
int byte2cells(int b)
|
||||
FUNC_ATTR_PURE
|
||||
{
|
||||
|
@@ -2104,7 +2104,7 @@ static int handle_mapping(int *keylenp, bool *timedout, int *mapdepth)
|
||||
} else {
|
||||
keylen = 0;
|
||||
}
|
||||
if (keylen == 0) { // no simplication has been done
|
||||
if (keylen == 0) { // no simplification has been done
|
||||
// If there was no mapping at all use the character from the
|
||||
// typeahead buffer right here.
|
||||
if (mp == NULL) {
|
||||
|
@@ -265,7 +265,7 @@ void hash_unlock(hashtab_T *ht)
|
||||
hash_may_resize(ht, 0);
|
||||
}
|
||||
|
||||
/// Resize hastable (new size can be given or automatically computed).
|
||||
/// Resize hashtable (new size can be given or automatically computed).
|
||||
///
|
||||
/// @param minitems Minimum number of items the new table should hold.
|
||||
/// If zero, new size will depend on currently used items:
|
||||
|
@@ -2034,7 +2034,7 @@ void highlight_changed(void)
|
||||
}
|
||||
}
|
||||
|
||||
// sentinel value. used when no hightlight namespace is active
|
||||
// sentinel value. used when no highlight namespace is active
|
||||
highlight_attr[HLF_COUNT] = 0;
|
||||
|
||||
//
|
||||
|
@@ -1369,7 +1369,7 @@ static int query_inspect(lua_State *L)
|
||||
lua_rawseti(L, -2, nextitem++); // [retval, patterns, pat, pred]
|
||||
}
|
||||
// last predicate should have ended with TypeDone
|
||||
lua_pop(L, 1); // [retval, patters, pat]
|
||||
lua_pop(L, 1); // [retval, patterns, pat]
|
||||
lua_rawseti(L, -2, (int)i + 1); // [retval, patterns]
|
||||
}
|
||||
lua_setfield(L, -2, "patterns"); // [retval]
|
||||
|
@@ -805,7 +805,7 @@ done:
|
||||
/// char *output = NULL;
|
||||
/// size_t nread = 0;
|
||||
/// char *argv[] = {"ls", "-la", NULL};
|
||||
/// int exitcode = os_sytem(argv, NULL, 0, &output, &nread);
|
||||
/// int exitcode = os_system(argv, NULL, 0, &output, &nread);
|
||||
///
|
||||
/// @param argv The commandline arguments to be passed to the shell. `argv`
|
||||
/// will be consumed.
|
||||
|
@@ -575,7 +575,7 @@ bool path_has_exp_wildcard(const char_u *p)
|
||||
/// @param path The path to search.
|
||||
/// @param flags Flags for regexp expansion.
|
||||
/// - EW_ICASE: Ignore case.
|
||||
/// - EW_NOERROR: Silence error messeges.
|
||||
/// - EW_NOERROR: Silence error messages.
|
||||
/// - EW_NOTWILD: Add matches literally.
|
||||
/// @returns the number of matches found.
|
||||
static size_t path_expand(garray_T *gap, const char_u *path, int flags)
|
||||
|
@@ -1503,7 +1503,7 @@ bool current_quote(oparg_T *oap, long count, bool include, int quotechar)
|
||||
bool inside_quotes = false; // Looks like "i'" done before
|
||||
bool selected_quote = false; // Has quote inside selection
|
||||
int i;
|
||||
bool restore_vis_bef = false; // resotre VIsual on abort
|
||||
bool restore_vis_bef = false; // restore VIsual on abort
|
||||
|
||||
// When 'selection' is "exclusive" move the cursor to where it would be
|
||||
// with 'selection' "inclusive", so that the logic is the same for both.
|
||||
|
@@ -737,7 +737,7 @@ void win_set_minimal_style(win_T *wp)
|
||||
}
|
||||
|
||||
// TODO(bfredl): this could use a highlight namespace directly,
|
||||
// and avoid pecularities around window options
|
||||
// and avoid peculiarities around window options
|
||||
char_u *old = (char_u *)wp->w_p_winhl;
|
||||
wp->w_p_winhl = ((*old == NUL)
|
||||
? xstrdup("EndOfBuffer:")
|
||||
|
Reference in New Issue
Block a user