forked from aniani/vim
patch 7.4.2067
Problem: Compiler warning for char/char_u conversion. (Tony Mechelynck) Inefficient code. Solution: Use more lines to fill with spaces. (Nikolai Pavlov) Add type cast.
This commit is contained in:
@@ -2593,9 +2593,14 @@ qf_msg(qf_info_T *qi, int which, char *lead)
|
|||||||
|
|
||||||
if (title != NULL)
|
if (title != NULL)
|
||||||
{
|
{
|
||||||
while (STRLEN(buf) < 34)
|
size_t len = STRLEN(buf);
|
||||||
STRCAT(buf, " ");
|
|
||||||
vim_strcat(buf, title, IOSIZE);
|
if (len < 34)
|
||||||
|
{
|
||||||
|
vim_memset(buf + len, ' ', 34 - len);
|
||||||
|
buf[34] = NUL;
|
||||||
|
}
|
||||||
|
vim_strcat(buf, (char_u *)title, IOSIZE);
|
||||||
}
|
}
|
||||||
trunc_string(buf, buf, Columns - 1, IOSIZE);
|
trunc_string(buf, buf, Columns - 1, IOSIZE);
|
||||||
msg(buf);
|
msg(buf);
|
||||||
|
@@ -758,6 +758,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2067,
|
||||||
/**/
|
/**/
|
||||||
2066,
|
2066,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user