diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-19 17:43:09 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-19 17:43:09 +0100 |
commit | 32526b3c1846025f0e655f41efd4e5428da16b6c (patch) | |
tree | e9f3ea5e0daaada049e905b5f1b38b4a45511f3d /src/sign.c | |
parent | d383c92ec1d14ffd5c3802f0ffd763e91d547fa8 (diff) | |
download | vim-git-32526b3c1846025f0e655f41efd4e5428da16b6c.tar.gz |
patch 8.1.0779: argument for message functions is inconsistentv8.1.0779
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
Diffstat (limited to 'src/sign.c')
-rw-r--r-- | src/sign.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/sign.c b/src/sign.c index bab93ff08..3e2baff07 100644 --- a/src/sign.c +++ b/src/sign.c @@ -611,7 +611,7 @@ sign_list_placed(buf_T *rbuf, char_u *sign_group) char lbuf[MSG_BUF_LEN]; char group[MSG_BUF_LEN]; - MSG_PUTS_TITLE(_("\n--- Signs ---")); + msg_puts_title(_("\n--- Signs ---")); msg_putchar('\n'); if (rbuf == NULL) buf = firstbuf; @@ -622,7 +622,7 @@ sign_list_placed(buf_T *rbuf, char_u *sign_group) if (buf->b_signlist != NULL) { vim_snprintf(lbuf, MSG_BUF_LEN, _("Signs for %s:"), buf->b_fname); - MSG_PUTS_ATTR(lbuf, HL_ATTR(HLF_D)); + msg_puts_attr(lbuf, HL_ATTR(HLF_D)); msg_putchar('\n'); } FOR_ALL_SIGNS_IN_BUF(buf, sign) @@ -640,7 +640,7 @@ sign_list_placed(buf_T *rbuf, char_u *sign_group) _(" line=%ld id=%d%s name=%s priority=%d"), (long)sign->lnum, sign->id, group, sign_typenr2name(sign->typenr), sign->priority); - MSG_PUTS(lbuf); + msg_puts(lbuf); msg_putchar('\n'); } if (rbuf != NULL) @@ -1640,37 +1640,37 @@ sign_list_defined(sign_T *sp) smsg("sign %s", sp->sn_name); if (sp->sn_icon != NULL) { - MSG_PUTS(" icon="); + msg_puts(" icon="); msg_outtrans(sp->sn_icon); # ifdef FEAT_SIGN_ICONS if (sp->sn_image == NULL) - MSG_PUTS(_(" (NOT FOUND)")); + msg_puts(_(" (NOT FOUND)")); # else - MSG_PUTS(_(" (not supported)")); + msg_puts(_(" (not supported)")); # endif } if (sp->sn_text != NULL) { - MSG_PUTS(" text="); + msg_puts(" text="); msg_outtrans(sp->sn_text); } if (sp->sn_line_hl > 0) { - MSG_PUTS(" linehl="); + msg_puts(" linehl="); p = get_highlight_name_ext(NULL, sp->sn_line_hl - 1, FALSE); if (p == NULL) - MSG_PUTS("NONE"); + msg_puts("NONE"); else - msg_puts(p); + msg_puts((char *)p); } if (sp->sn_text_hl > 0) { - MSG_PUTS(" texthl="); + msg_puts(" texthl="); p = get_highlight_name_ext(NULL, sp->sn_text_hl - 1, FALSE); if (p == NULL) - MSG_PUTS("NONE"); + msg_puts("NONE"); else - msg_puts(p); + msg_puts((char *)p); } } |