Mercurial > vim
diff src/spell.c @ 15543:dd725a8ab112 v8.1.0779
patch 8.1.0779: argument for message functions is inconsistent
commit https://github.com/vim/vim/commit/32526b3c1846025f0e655f41efd4e5428da16b6c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 19 17:43:09 2019 +0100
patch 8.1.0779: argument for message functions is inconsistent
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 19 Jan 2019 17:45:07 +0100 |
parents | 55ccc2d353bd |
children | 62b3805506b3 |
line wrap: on
line diff
--- a/src/spell.c +++ b/src/spell.c @@ -3375,7 +3375,7 @@ spell_suggest(int count) TRUE, need_cap, TRUE); if (sug.su_ga.ga_len == 0) - MSG(_("Sorry, no suggestions")); + msg(_("Sorry, no suggestions")); else if (count > 0) { if (count > sug.su_ga.ga_len) @@ -3409,7 +3409,7 @@ spell_suggest(int count) sug.su_badlen, sug.su_badptr); } #endif - msg_puts(IObuff); + msg_puts((char *)IObuff); msg_clr_eos(); msg_putchar('\n'); @@ -3430,17 +3430,17 @@ spell_suggest(int count) if (cmdmsg_rl) rl_mirror(IObuff); #endif - msg_puts(IObuff); + msg_puts((char *)IObuff); vim_snprintf((char *)IObuff, IOSIZE, " \"%s\"", wcopy); - msg_puts(IObuff); + msg_puts((char *)IObuff); /* The word may replace more than "su_badlen". */ if (sug.su_badlen < stp->st_orglen) { vim_snprintf((char *)IObuff, IOSIZE, _(" < \"%.*s\""), stp->st_orglen, sug.su_badptr); - msg_puts(IObuff); + msg_puts((char *)IObuff); } if (p_verbose > 0) @@ -3459,7 +3459,7 @@ spell_suggest(int count) rl_mirror(IObuff + 1); #endif msg_advance(30); - msg_puts(IObuff); + msg_puts((char *)IObuff); } msg_putchar('\n'); } @@ -8458,13 +8458,13 @@ ex_spellinfo(exarg_T *eap UNUSED) for (lpi = 0; lpi < curwin->w_s->b_langp.ga_len && !got_int; ++lpi) { lp = LANGP_ENTRY(curwin->w_s->b_langp, lpi); - msg_puts((char_u *)"file: "); - msg_puts(lp->lp_slang->sl_fname); + msg_puts("file: "); + msg_puts((char *)lp->lp_slang->sl_fname); msg_putchar('\n'); p = lp->lp_slang->sl_info; if (p != NULL) { - msg_puts(p); + msg_puts((char *)p); msg_putchar('\n'); } }