mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
chore: fix typos (#16506)
Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Christoph Hasse <hassec@users.noreply.github.com> Co-authored-by: Alef Pereira <ealefpereira@gmail.com> Co-authored-by: AusCyber <willp@outlook.com.au> Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
This commit is contained in:
@@ -662,7 +662,7 @@ Object nvim_get_option(String name, Error *err)
|
||||
///
|
||||
/// @param name Option name
|
||||
/// @param opts Optional parameters
|
||||
/// - scope: One of 'global' or 'local'. Analagous to
|
||||
/// - scope: One of 'global' or 'local'. Analogous to
|
||||
/// |:setglobal| and |:setlocal|, respectively.
|
||||
/// @param[out] err Error details, if any
|
||||
/// @return Option value
|
||||
@@ -724,7 +724,7 @@ end:
|
||||
/// @param name Option name
|
||||
/// @param value New option value
|
||||
/// @param opts Optional parameters
|
||||
/// - scope: One of 'global' or 'local'. Analagous to
|
||||
/// - scope: One of 'global' or 'local'. Analogous to
|
||||
/// |:setglobal| and |:setlocal|, respectively.
|
||||
/// @param[out] err Error details, if any
|
||||
void nvim_set_option_value(String name, Object value, Dict(option) *opts, Error *err)
|
||||
@@ -1741,7 +1741,7 @@ Array nvim_list_chans(void)
|
||||
/// 1. To perform several requests from an async context atomically, i.e.
|
||||
/// without interleaving redraws, RPC requests from other clients, or user
|
||||
/// interactions (however API methods may trigger autocommands or event
|
||||
/// processing which have such side-effects, e.g. |:sleep| may wake timers).
|
||||
/// processing which have such side effects, e.g. |:sleep| may wake timers).
|
||||
/// 2. To minimize RPC overhead (roundtrips) of a sequence of many requests.
|
||||
///
|
||||
/// @param channel_id
|
||||
@@ -2101,7 +2101,7 @@ void nvim__screenshot(String path)
|
||||
}
|
||||
|
||||
|
||||
/// Deletes a uppercase/file named mark. See |mark-motions|.
|
||||
/// Deletes an uppercase/file named mark. See |mark-motions|.
|
||||
///
|
||||
/// @note fails with error if a lowercase or buffer local named mark is used.
|
||||
/// @param name Mark name
|
||||
|
@@ -39,7 +39,7 @@ Buffer nvim_win_get_buf(Window window, Error *err)
|
||||
return win->w_buffer->handle;
|
||||
}
|
||||
|
||||
/// Sets the current buffer in a window, without side-effects
|
||||
/// Sets the current buffer in a window, without side effects
|
||||
///
|
||||
/// @param window Window handle, or 0 for current window
|
||||
/// @param buffer Buffer handle
|
||||
|
@@ -75,7 +75,7 @@ bool loop_poll_events(Loop *loop, int ms)
|
||||
/// @note Event is queued into `fast_events`, which is processed outside of the
|
||||
/// primary `events` queue by loop_poll_events(). For `main_loop`, that
|
||||
/// means `fast_events` is NOT processed in an "editor mode"
|
||||
/// (VimState.execute), so redraw and other side-effects are likely to be
|
||||
/// (VimState.execute), so redraw and other side effects are likely to be
|
||||
/// skipped.
|
||||
/// @see loop_schedule_deferred
|
||||
void loop_schedule_fast(Loop *loop, Event event)
|
||||
|
@@ -424,7 +424,7 @@ end
|
||||
--- Without a runtime, writes to :Messages
|
||||
---@see :help nvim_notify
|
||||
---@param msg string Content of the notification to show to the user
|
||||
---@param log_level number|nil enum from vim.log.levels
|
||||
---@param log_level number|nil enum from |vim.log.levels|
|
||||
---@param opts table|nil additional options (timeout, etc)
|
||||
function vim.notify(msg, log_level, opts) -- luacheck: no unused
|
||||
if log_level == vim.log.levels.ERROR then
|
||||
|
@@ -113,14 +113,14 @@ func Test_put_p_indent_visual()
|
||||
endfunc
|
||||
|
||||
func Test_multibyte_op_end_mark()
|
||||
new
|
||||
call setline(1, 'тест')
|
||||
normal viwdp
|
||||
call assert_equal([0, 1, 7, 0], getpos("'>"))
|
||||
call assert_equal([0, 1, 7, 0], getpos("']"))
|
||||
new
|
||||
call setline(1, 'тест')
|
||||
normal viwdp
|
||||
call assert_equal([0, 1, 7, 0], getpos("'>"))
|
||||
call assert_equal([0, 1, 7, 0], getpos("']"))
|
||||
|
||||
normal Vyp
|
||||
call assert_equal([0, 1, 2147483647, 0], getpos("'>"))
|
||||
call assert_equal([0, 2, 7, 0], getpos("']"))
|
||||
bwipe!
|
||||
endfunc
|
||||
normal Vyp
|
||||
call assert_equal([0, 1, 2147483647, 0], getpos("'>"))
|
||||
call assert_equal([0, 2, 7, 0], getpos("']"))
|
||||
bwipe!
|
||||
endfunc
|
||||
|
@@ -1877,7 +1877,7 @@ static void patch_terminfo_bugs(TUIData *data, const char *term, const char *col
|
||||
"\x1b[?c");
|
||||
} else if (konsolev > 0 && konsolev < 180770) {
|
||||
// Konsole before version 18.07.70: set up a nonce profile. This has
|
||||
// side-effects on temporary font resizing. #6798
|
||||
// side effects on temporary font resizing. #6798
|
||||
data->unibi_ext.set_cursor_style = (int)unibi_add_ext_str(ut, "Ss",
|
||||
TMUX_WRAP(tmux,
|
||||
"\x1b]50;CursorShape=%?"
|
||||
|
Reference in New Issue
Block a user