diff options
author | ii14 <59243201+ii14@users.noreply.github.com> | 2023-04-01 02:49:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-01 08:49:51 +0800 |
commit | d5f6176e6dc4b4e12fc5061ca6e87f4af533e46a (patch) | |
tree | ed51aa26f2b10c950c9bf2d7d035450335d01b55 /src/nvim/search.c | |
parent | 83bfd94d1df5eecb8e4069a227c7d24598636d63 (diff) | |
download | rneovim-d5f6176e6dc4b4e12fc5061ca6e87f4af533e46a.tar.gz rneovim-d5f6176e6dc4b4e12fc5061ca6e87f4af533e46a.tar.bz2 rneovim-d5f6176e6dc4b4e12fc5061ca6e87f4af533e46a.zip |
refactor: add const and remove unnecessary casts (#22841)
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r-- | src/nvim/search.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index 67b6f5e6a6..525cec8b02 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -4159,10 +4159,10 @@ static void show_pat_in_path(char *line, int type, bool did_show, int action, FI } if (action == ACTION_SHOW_ALL) { snprintf(IObuff, IOSIZE, "%3ld: ", count); // Show match nr. - msg_puts((const char *)IObuff); + msg_puts(IObuff); snprintf(IObuff, IOSIZE, "%4" PRIdLINENR, *lnum); // Show line nr. // Highlight line numbers. - msg_puts_attr((const char *)IObuff, HL_ATTR(HLF_N)); + msg_puts_attr(IObuff, HL_ATTR(HLF_N)); msg_puts(" "); } msg_prt_line(line, false); |