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/getchar.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/getchar.c')
-rw-r--r-- | src/getchar.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/getchar.c b/src/getchar.c index a51af9dd9..c0cfd92d6 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -1942,7 +1942,7 @@ vungetc(int c) } /* - * Get a character: + * Get a byte: * 1. from the stuffbuffer * This is used for abbreviated commands like "D" -> "d$". * Also used to redo a command for ".". @@ -3728,9 +3728,9 @@ do_map( ) { if (abbrev) - MSG(_("No abbreviation found")); + msg(_("No abbreviation found")); else - MSG(_("No mapping found")); + msg(_("No mapping found")); } goto theend; /* listing finished */ } @@ -4047,7 +4047,7 @@ showmap( mapchars = map_mode_to_chars(mp->m_mode); if (mapchars != NULL) { - msg_puts(mapchars); + msg_puts((char *)mapchars); len = (int)STRLEN(mapchars); vim_free(mapchars); } @@ -4064,9 +4064,9 @@ showmap( } while (len < 12); if (mp->m_noremap == REMAP_NONE) - msg_puts_attr((char_u *)"*", HL_ATTR(HLF_8)); + msg_puts_attr("*", HL_ATTR(HLF_8)); else if (mp->m_noremap == REMAP_SCRIPT) - msg_puts_attr((char_u *)"&", HL_ATTR(HLF_8)); + msg_puts_attr("&", HL_ATTR(HLF_8)); else msg_putchar(' '); @@ -4078,7 +4078,7 @@ showmap( /* Use FALSE below if we only want things like <Up> to show up as such on * the rhs, and not M-x etc, TRUE gets both -- webb */ if (*mp->m_str == NUL) - msg_puts_attr((char_u *)"<Nop>", HL_ATTR(HLF_8)); + msg_puts_attr("<Nop>", HL_ATTR(HLF_8)); else { /* Remove escaping of CSI, because "m_str" is in a format to be used |