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/nvim/search.c | |
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/nvim/search.c')
-rw-r--r-- | src/nvim/search.c | 7 |
1 files changed, 3 insertions, 4 deletions
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; |