diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-05-15 01:18:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-15 07:18:33 +0800 |
commit | 7acf39ddab8ebdb63ebf78ec980149d20783fd4b (patch) | |
tree | 90bd4d1b3aa6b9c8e340a3f825651eb3ac47071e /src | |
parent | b83d5fabc6cbe08867b933958de7df7d3917247b (diff) | |
download | rneovim-7acf39ddab8ebdb63ebf78ec980149d20783fd4b.tar.gz rneovim-7acf39ddab8ebdb63ebf78ec980149d20783fd4b.tar.bz2 rneovim-7acf39ddab8ebdb63ebf78ec980149d20783fd4b.zip |
docs: misc (#28609)
Closes https://github.com/neovim/neovim/issues/28484.
Closes https://github.com/neovim/neovim/issues/28719.
Co-authored-by: Chris <crwebb85@gmail.com>
Co-authored-by: Gregory Anders <greg@gpanders.com>
Co-authored-by: Jake B <16889000+jakethedev@users.noreply.github.com>
Co-authored-by: Jonathan Raines <jonathan.s.raines@gmail.com>
Co-authored-by: Yi Ming <ofseed@foxmail.com>
Co-authored-by: Zane Dufour <zane@znd4.me>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/cursor.c | 2 | ||||
-rw-r--r-- | src/nvim/ex_docmd.c | 2 | ||||
-rw-r--r-- | src/nvim/grid.c | 2 | ||||
-rw-r--r-- | src/nvim/highlight_group.c | 2 | ||||
-rw-r--r-- | src/nvim/indent_c.c | 2 | ||||
-rw-r--r-- | src/nvim/mapping.c | 3 | ||||
-rw-r--r-- | src/nvim/path.c | 2 | ||||
-rw-r--r-- | src/nvim/regexp.c | 2 | ||||
-rw-r--r-- | src/nvim/search.c | 7 |
9 files changed, 11 insertions, 13 deletions
diff --git a/src/nvim/cursor.c b/src/nvim/cursor.c index 91bd217ae8..2e9e68843a 100644 --- a/src/nvim/cursor.c +++ b/src/nvim/cursor.c @@ -353,7 +353,7 @@ void check_cursor_col(win_T *win) // Allow cursor past end-of-line when: // - in Insert mode or restarting Insert mode // - in Visual mode and 'selection' isn't "old" - // - 'virtualedit' is set */ + // - 'virtualedit' is set if ((State & MODE_INSERT) || restart_edit || (VIsual_active && *p_sel != 'o') || (cur_ve_flags & VE_ONEMORE) diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 47b4c1e47d..fb4acaec04 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -4082,7 +4082,7 @@ void separate_nextcmd(exarg_T *eap) break; } } else if ( - // Check for '"': start of comment or '|': next command */ + // Check for '"': start of comment or '|': next command // :@" does not start a comment! // :redir @" doesn't either. (*p == '"' diff --git a/src/nvim/grid.c b/src/nvim/grid.c index 24a82b7e78..56246bf001 100644 --- a/src/nvim/grid.c +++ b/src/nvim/grid.c @@ -443,7 +443,7 @@ int grid_line_puts(int col, const char *text, int textlen, int attr) if (col + mbyte_cells > max_col) { // Only 1 cell left, but character requires 2 cells: - // display a '>' in the last column to avoid wrapping. */ + // display a '>' in the last column to avoid wrapping. schar = schar_from_ascii('>'); mbyte_cells = 1; } diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c index c4fb57c95a..1c47791a65 100644 --- a/src/nvim/highlight_group.c +++ b/src/nvim/highlight_group.c @@ -1963,7 +1963,7 @@ int syn_name2id_len(const char *name, size_t len) return 0; } - // Avoid using stricmp() too much, it's slow on some systems */ + // Avoid using stricmp() too much, it's slow on some systems // Avoid alloc()/free(), these are slow too. vim_memcpy_up(name_u, name, len); name_u[len] = '\0'; diff --git a/src/nvim/indent_c.c b/src/nvim/indent_c.c index a660c9dead..65b5f46333 100644 --- a/src/nvim/indent_c.c +++ b/src/nvim/indent_c.c @@ -1197,7 +1197,7 @@ static int cin_is_cpp_baseclass(cpp_baseclass_cache_T *cached) s = line; } if (s == line) { - // don't recognize "case (foo):" as a baseclass */ + // don't recognize "case (foo):" as a baseclass if (cin_iscase(s, false)) { break; } diff --git a/src/nvim/mapping.c b/src/nvim/mapping.c index ad02a060a2..9320390d68 100644 --- a/src/nvim/mapping.c +++ b/src/nvim/mapping.c @@ -1812,8 +1812,7 @@ int makemap(FILE *fd, buf_T *buf) iemsg(_("E228: makemap: Illegal mode")); return FAIL; } - do { - // do this twice if c2 is set, 3 times with c3 */ + do { // do this twice if c2 is set, 3 times with c3 // When outputting <> form, need to make sure that 'cpo' // is set to the Vim default. if (!did_cpo) { diff --git a/src/nvim/path.c b/src/nvim/path.c index 251051a4ac..f7e8b2b65c 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -999,7 +999,7 @@ static void uniquefy_paths(garray_T *gap, char *pattern) memmove(path, path_cutoff, strlen(path_cutoff) + 1); } else { // Here all files can be reached without path, so get shortest - // unique path. We start at the end of the path. */ + // unique path. We start at the end of the path. char *pathsep_p = path + len - 1; while (find_previous_pathsep(path, &pathsep_p)) { if (vim_regexec(®match, pathsep_p + 1, 0) diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index e923449abe..77724b629d 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -10555,7 +10555,7 @@ nfa_do_multibyte: // NFA_END_COMPOSING is the ). Note that right now we are // building the postfix form, not the NFA itself; // a composing char could be: a, b, c, NFA_COMPOSING - // where 'b' and 'c' are chars with codes > 256. */ + // where 'b' and 'c' are chars with codes > 256. while (true) { EMIT(c); if (i > 0) { diff --git a/src/nvim/search.c b/src/nvim/search.c index 1720274e61..df0a9171d2 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -2460,7 +2460,7 @@ int current_search(int count, bool forward) // beginning of the file (cursor might be on the search match) // except when Visual mode is active, so that extending the visual // selection works. - if (i == 1 && !result) { // not found, abort */ + if (i == 1 && !result) { // not found, abort curwin->w_cursor = orig_pos; if (VIsual_active) { VIsual = save_VIsual; @@ -3677,9 +3677,8 @@ void find_pattern_in_path(char *ptr, Direction dir, size_t len, bool whole, bool true) & kEqualFiles) { if (type != CHECK_PATH && action == ACTION_SHOW_ALL && files[i].matched) { - msg_putchar('\n'); // cursor below last one */ - if (!got_int) { // don't display if 'q' typed at "--more--" - // message + msg_putchar('\n'); // cursor below last one + if (!got_int) { // don't display if 'q' typed at "--more--" message msg_home_replace_hl(new_fname); msg_puts(_(" (includes previously listed match)")); prev_fname = NULL; |