aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-11-13 12:34:09 +0100
committerGitHub <noreply@github.com>2024-11-13 12:34:09 +0100
commit37f665c504e499c95bc0a88c52dd38ca9f621cdd (patch)
tree366be69fff5a72c1f73b27ffa8cdf1a900288dbf /src/nvim/search.c
parenteaf5ae6cc69a97e58365b409554783be9dd21385 (diff)
parentff7518b83cb270f8fcaded19bf640cf4bdfb0ff0 (diff)
downloadrneovim-37f665c504e499c95bc0a88c52dd38ca9f621cdd.tar.gz
rneovim-37f665c504e499c95bc0a88c52dd38ca9f621cdd.tar.bz2
rneovim-37f665c504e499c95bc0a88c52dd38ca9f621cdd.zip
Merge pull request #31164 from bfredl/hlf_enum
refactor(highlight): make enum of builtin highlights start with 1
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r--src/nvim/search.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index bfa90ba24a..debc5697d1 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -3772,7 +3772,7 @@ void find_pattern_in_path(char *ptr, Direction dir, size_t len, bool whole, bool
if (new_fname != NULL) {
// using "new_fname" is more reliable, e.g., when
// 'includeexpr' is set.
- msg_outtrans(new_fname, HLF_D + 1, false);
+ msg_outtrans(new_fname, HLF_D, false);
} else {
// Isolate the file name.
// Include the surrounding "" or <> if present.
@@ -3806,7 +3806,7 @@ void find_pattern_in_path(char *ptr, Direction dir, size_t len, bool whole, bool
}
char save_char = p[i];
p[i] = NUL;
- msg_outtrans(p, HLF_D + 1, false);
+ msg_outtrans(p, HLF_D, false);
p[i] = save_char;
}
@@ -3858,7 +3858,7 @@ void find_pattern_in_path(char *ptr, Direction dir, size_t len, bool whole, bool
vim_snprintf(IObuff, IOSIZE,
_("Scanning included file: %s"),
new_fname);
- msg_trunc(IObuff, true, HLF_R + 1);
+ msg_trunc(IObuff, true, HLF_R);
} else if (p_verbose >= 5) {
verbose_enter();
smsg(0, _("Searching included file %s"), new_fname);
@@ -4233,7 +4233,7 @@ static void show_pat_in_path(char *line, int type, bool did_show, int action, FI
msg_puts(IObuff);
snprintf(IObuff, IOSIZE, "%4" PRIdLINENR, *lnum); // Show line nr.
// Highlight line numbers.
- msg_puts_hl(IObuff, HLF_N + 1, false);
+ msg_puts_hl(IObuff, HLF_N, false);
msg_puts(" ");
}
msg_prt_line(line, false);