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/spellsuggest.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/spellsuggest.c')
-rw-r--r-- | src/nvim/spellsuggest.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/spellsuggest.c b/src/nvim/spellsuggest.c index 705e215dfa..d28460a63d 100644 --- a/src/nvim/spellsuggest.c +++ b/src/nvim/spellsuggest.c @@ -551,7 +551,7 @@ void spell_suggest(int count) vim_snprintf(IObuff, IOSIZE, ":ot \"%.*s\" egnahC", sug.su_badlen, sug.su_badptr); } - msg_puts((const char *)IObuff); + msg_puts(IObuff); msg_clr_eos(); msg_putchar('\n'); @@ -570,16 +570,16 @@ void spell_suggest(int count) if (cmdmsg_rl) { rl_mirror_ascii(IObuff); } - msg_puts((const char *)IObuff); + msg_puts(IObuff); vim_snprintf(IObuff, IOSIZE, " \"%s\"", wcopy); - msg_puts((const char *)IObuff); + msg_puts(IObuff); // The word may replace more than "su_badlen". if (sug.su_badlen < stp->st_orglen) { vim_snprintf(IObuff, IOSIZE, _(" < \"%.*s\""), stp->st_orglen, sug.su_badptr); - msg_puts((const char *)IObuff); + msg_puts(IObuff); } if (p_verbose > 0) { @@ -597,7 +597,7 @@ void spell_suggest(int count) rl_mirror_ascii(IObuff + 1); } msg_advance(30); - msg_puts((const char *)IObuff); + msg_puts(IObuff); } msg_putchar('\n'); } |