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.

16ec3c9be3
This commit is contained in:
lonerover 2017-01-18 12:09:20 +08:00
parent 480b02fdb2
commit 86f76108f7
2 changed files with 7 additions and 4 deletions

View File

@ -2118,10 +2118,13 @@ static void qf_msg(qf_info_T *qi, int which, char *lead)
count); count);
if (title != NULL) { if (title != NULL) {
while (STRLEN(buf) < 34) { size_t len = STRLEN(buf);
STRCAT(buf, " ");
if (len < 34) {
memset(buf + len, ' ', 34 - len);
buf[34] = NUL;
} }
vim_strcat(buf, title, IOSIZE); vim_strcat(buf, (char_u *)title, IOSIZE);
} }
trunc_string(buf, buf, (int)Columns - 1, IOSIZE); trunc_string(buf, buf, (int)Columns - 1, IOSIZE);
msg(buf); msg(buf);

View File

@ -373,7 +373,7 @@ static int included_patches[] = {
// 2070 NA // 2070 NA
// 2069, // 2069,
// 2068, // 2068,
// 2067, 2067,
2066, 2066,
2065, 2065,
2064, 2064,