diff options
-rw-r--r-- | runtime/doc/api.txt | 2 | ||||
-rw-r--r-- | runtime/doc/builtin.txt | 2 | ||||
-rw-r--r-- | runtime/doc/channel.txt | 2 | ||||
-rw-r--r-- | runtime/doc/ft_rust.txt | 1 | ||||
-rw-r--r-- | runtime/doc/options.txt | 2 | ||||
-rw-r--r-- | runtime/doc/starting.txt | 2 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/api.lua | 2 | ||||
-rw-r--r-- | runtime/lua/vim/_meta/vimfn.lua | 2 | ||||
-rw-r--r-- | src/nvim/api/buffer.c | 4 | ||||
-rw-r--r-- | src/nvim/api/win_config.c | 2 | ||||
-rw-r--r-- | src/nvim/diff.c | 3 | ||||
-rw-r--r-- | src/nvim/eval.lua | 2 | ||||
-rw-r--r-- | src/nvim/grid.c | 2 | ||||
-rw-r--r-- | src/nvim/grid.h | 2 | ||||
-rw-r--r-- | src/nvim/keycodes.c | 2 | ||||
-rw-r--r-- | src/nvim/map_glyph_cache.c | 2 | ||||
-rw-r--r-- | src/nvim/os/lang.c | 2 | ||||
-rw-r--r-- | test/functional/api/autocmd_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/legacy/scroll_opt_spec.lua | 2 |
19 files changed, 19 insertions, 21 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index d64020191d..4430d97fc7 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -3161,7 +3161,7 @@ nvim_open_win({buffer}, {enter}, {*config}) *nvim_open_win()* • "shadow": A drop shadow effect by blending with the background. • If it is an array, it should have a length of eight or - any divisor of eight. The array will specifify the eight + any divisor of eight. The array will specify the eight chars building up the border in a clockwise fashion starting with the top-left corner. As an example, the double box style could be specified as [ "╔", "═" ,"╗", diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 5a99fb686e..35c94d6c74 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -7187,7 +7187,7 @@ sockconnect({mode}, {address} [, {opts}]) *sockconnect()* {address} should be the path of a local domain socket (on unix) or named pipe (on Windows). If {mode} is "tcp" then {address} should be of the form "host:port" where the host - should be an ip adderess or host name, and port the port + should be an ip address or host name, and port the port number. For "pipe" mode, see |luv-pipe-handle|. For "tcp" mode, see diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt index e517d0d9cd..7184151cda 100644 --- a/runtime/doc/channel.txt +++ b/runtime/doc/channel.txt @@ -117,7 +117,7 @@ simple example, echoing some data through a cat-process: call chansend(id, "hello!") < -Here is a example of setting a buffer to the result of grep, but only after +Here is an example of setting a buffer to the result of grep, but only after all data has been processed: >vim function! s:OnEvent(id, data, event) dict diff --git a/runtime/doc/ft_rust.txt b/runtime/doc/ft_rust.txt index 083b6f579f..159ff7d5f6 100644 --- a/runtime/doc/ft_rust.txt +++ b/runtime/doc/ft_rust.txt @@ -276,7 +276,6 @@ g:rust_keep_autopairs_default ~ Don't override auto-pairs default for the Rust filetype. The default is 0. - ============================================================================== COMMANDS *rust-commands* diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 56926aec69..b2a020cf9d 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -137,7 +137,7 @@ backslash. To include a backslash you have to use two. Effectively this means that the number of backslashes in an option value is halved (rounded down). In options 'path', 'cdpath', and 'tags', spaces have to be preceded with three -backslashes instead becuase they can be separated by either commas or spaces. +backslashes instead because they can be separated by either commas or spaces. Comma-separated options like 'backupdir' and 'tags' will also require commas to be escaped with two backslashes, whereas this is not needed for non-comma-separated ones like 'makeprg'. diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt index 04d9142a58..af175ed2b9 100644 --- a/runtime/doc/starting.txt +++ b/runtime/doc/starting.txt @@ -1307,7 +1307,7 @@ exactly four MessagePack objects: 10 (LocalMark) 11 (Change) Map containing some position description: Entry Position ~ - GlobaMark Global mark position. |'A| + GlobalMark Global mark position. |'A| LocalMark Local mark position. |'a| Jump One position from the |jumplist|. Change One position from the |changelist|. diff --git a/runtime/lua/vim/_meta/api.lua b/runtime/lua/vim/_meta/api.lua index 5a9b0b53ce..691da62f4f 100644 --- a/runtime/lua/vim/_meta/api.lua +++ b/runtime/lua/vim/_meta/api.lua @@ -1594,7 +1594,7 @@ function vim.api.nvim_open_term(buffer, opts) end --- • "shadow": A drop shadow effect by blending with the --- background. --- • If it is an array, it should have a length of eight or ---- any divisor of eight. The array will specifify the eight +--- any divisor of eight. The array will specify the eight --- chars building up the border in a clockwise fashion --- starting with the top-left corner. As an example, the --- double box style could be specified as [ "╔", "═" ,"╗", diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 1830e1796b..0563f9dd5f 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -8530,7 +8530,7 @@ function vim.fn.slice(expr, start, end_) end --- {address} should be the path of a local domain socket (on --- unix) or named pipe (on Windows). If {mode} is "tcp" then --- {address} should be of the form "host:port" where the host ---- should be an ip adderess or host name, and port the port +--- should be an ip address or host name, and port the port --- number. --- --- For "pipe" mode, see |luv-pipe-handle|. For "tcp" mode, see diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index 86298efe08..2c80f96953 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -359,7 +359,7 @@ void nvim_buf_set_lines(uint64_t channel_id, Buffer buffer, Integer start, Integ return; } - // loaded buffer first if it's not loaded + // load buffer first if it's not loaded if (buf->b_ml.ml_mfp == NULL) { if (!buf_ensure_loaded(buf)) { api_set_error(err, kErrorTypeException, "Failed to load buffer"); @@ -541,7 +541,7 @@ void nvim_buf_set_text(uint64_t channel_id, Buffer buffer, Integer start_row, In return; } - // loaded buffer first if it's not loaded + // load buffer first if it's not loaded if (buf->b_ml.ml_mfp == NULL) { if (!buf_ensure_loaded(buf)) { api_set_error(err, kErrorTypeException, "Failed to load buffer"); diff --git a/src/nvim/api/win_config.c b/src/nvim/api/win_config.c index 2fd30bc5a5..6f38989c96 100644 --- a/src/nvim/api/win_config.c +++ b/src/nvim/api/win_config.c @@ -135,7 +135,7 @@ /// - "solid": Adds padding by a single whitespace cell. /// - "shadow": A drop shadow effect by blending with the background. /// - If it is an array, it should have a length of eight or any divisor of -/// eight. The array will specifify the eight chars building up the border +/// eight. The array will specify the eight chars building up the border /// in a clockwise fashion starting with the top-left corner. As an /// example, the double box style could be specified as /// [ "╔", "═" ,"╗", "║", "╝", "═", "╚", "║" ]. diff --git a/src/nvim/diff.c b/src/nvim/diff.c index c76e6aaa2f..8516e33638 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -3396,10 +3396,9 @@ linenr_T diff_lnum_win(linenr_T lnum, win_T *wp) return n; } -/// /// Handle an ED style diff line. -/// Return FAIL if the line does not contain diff info. /// +/// @return FAIL if the line does not contain diff info. static int parse_diff_ed(char *line, diffhunk_T *hunk) { int l1, l2; diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index deaeb51289..221be492af 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -10184,7 +10184,7 @@ M.funcs = { {address} should be the path of a local domain socket (on unix) or named pipe (on Windows). If {mode} is "tcp" then {address} should be of the form "host:port" where the host - should be an ip adderess or host name, and port the port + should be an ip address or host name, and port the port number. For "pipe" mode, see |luv-pipe-handle|. For "tcp" mode, see diff --git a/src/nvim/grid.c b/src/nvim/grid.c index c16625a330..efc819c26f 100644 --- a/src/nvim/grid.c +++ b/src/nvim/grid.c @@ -771,7 +771,7 @@ void grid_put_linebuf(ScreenGrid *grid, int row, int coloff, int col, int endcol ui_line(grid, row, start_pos, coloff + end_dirty, coloff + clear_end, bg_attr, wrap); } else if (grid->dirty_col) { - // TODO(bfredl): really get rid of the extra psuedo terminal in message.c + // TODO(bfredl): really get rid of the extra pseudo terminal in message.c // by using a linebuf_char copy for "throttled message line" if (clear_end > grid->dirty_col[row]) { grid->dirty_col[row] = clear_end; diff --git a/src/nvim/grid.h b/src/nvim/grid.h index 8658635f3a..1b2c529a93 100644 --- a/src/nvim/grid.h +++ b/src/nvim/grid.h @@ -36,7 +36,7 @@ EXTERN colnr_T *linebuf_vcol INIT( = NULL); /// Put a ASCII character in a screen cell. /// /// If `x` is a compile time constant, schar_from_ascii(x) will also be. -/// But the specific value varies per plattform. +/// But the specific value varies per platform. #ifdef ORDER_BIG_ENDIAN # define schar_from_ascii(x) ((schar_T)((x) << 24)) #else diff --git a/src/nvim/keycodes.c b/src/nvim/keycodes.c index d23fcaf368..e0279e39b6 100644 --- a/src/nvim/keycodes.c +++ b/src/nvim/keycodes.c @@ -880,7 +880,7 @@ int get_mouse_button(int code, bool *is_click, bool *is_drag) /// REPTERM_DO_LT also translate <lt> /// REPTERM_NO_SPECIAL do not accept <key> notation /// REPTERM_NO_SIMPLIFY do not simplify <C-H> into 0x08, etc. -/// @param[out] did_simplify set when some <C-H> code was simplied, unless it is NULL. +/// @param[out] did_simplify set when some <C-H> code was simplified, unless it is NULL. /// @param[in] cpo_flags Relevant flags derived from p_cpo, see CPO_TO_CPO_FLAGS. /// /// @return The same as what `*bufp` is set to. diff --git a/src/nvim/map_glyph_cache.c b/src/nvim/map_glyph_cache.c index 0d0f5ddd73..e79c8ecee8 100644 --- a/src/nvim/map_glyph_cache.c +++ b/src/nvim/map_glyph_cache.c @@ -6,7 +6,7 @@ // `String key` lookup keys don't need to be NULL terminated, but they // must not contain embedded NUL:s. When reading a key from set->keys, they // are always NUL terminated, though. Thus, it is enough to store an index into -// this array, and use strlen(), to retrive an interned key. +// this array, and use strlen(), to retrieve an interned key. #include <assert.h> #include <stdbool.h> diff --git a/src/nvim/os/lang.c b/src/nvim/os/lang.c index 93c200f6e8..602dcc9bd3 100644 --- a/src/nvim/os/lang.c +++ b/src/nvim/os/lang.c @@ -74,7 +74,7 @@ char *get_mess_lang(void) /// Get the language used for messages from the environment. /// /// This uses LC_MESSAGES when available, which it is for most systems we build for -/// except for windows. Then fallback to get the value from the envirionment +/// except for windows. Then fallback to get the value from the environment /// ourselves, and use LC_CTYPE as a last resort. static char *get_mess_env(void) { diff --git a/test/functional/api/autocmd_spec.lua b/test/functional/api/autocmd_spec.lua index bcae35d724..fd46a1dcfa 100644 --- a/test/functional/api/autocmd_spec.lua +++ b/test/functional/api/autocmd_spec.lua @@ -1333,7 +1333,7 @@ describe('autocmd api', function() local without_group = meths.get_autocmds(search) eq(2, #without_group) - -- Doest clear with passing group. + -- Doesn't clear with passing group. meths.clear_autocmds { buffer = 0, group = search.group } local with_group = meths.get_autocmds(search) eq(1, #with_group) diff --git a/test/functional/legacy/scroll_opt_spec.lua b/test/functional/legacy/scroll_opt_spec.lua index b179338665..5b4bfb3caa 100644 --- a/test/functional/legacy/scroll_opt_spec.lua +++ b/test/functional/legacy/scroll_opt_spec.lua @@ -884,7 +884,7 @@ describe('smoothscroll', function() end) -- oldtest: Test_smoothscroll_multi_skipcol() - it('scrolling mulitple lines and stopping at non-zero skipcol', function() + it('scrolling multiple lines and stopping at non-zero skipcol', function() screen:try_resize(40, 10) screen:set_default_attr_ids({ [0] = {foreground = Screen.colors.Blue, bold = true}, |