1
0
forked from aniani/vim

patch 8.1.0779: argument for message functions is inconsistent

Problem:    Argument for message functions is inconsistent.
Solution:   Make first argument to msg() "char *".
This commit is contained in:
Bram Moolenaar
2019-01-19 17:43:09 +01:00
parent d383c92ec1
commit 32526b3c18
56 changed files with 679 additions and 698 deletions

View File

@@ -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