mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
480b02fdb2
commit
86f76108f7
@ -2118,10 +2118,13 @@ static void qf_msg(qf_info_T *qi, int which, char *lead)
|
||||
count);
|
||||
|
||||
if (title != NULL) {
|
||||
while (STRLEN(buf) < 34) {
|
||||
STRCAT(buf, " ");
|
||||
size_t len = STRLEN(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);
|
||||
msg(buf);
|
||||
|
@ -373,7 +373,7 @@ static int included_patches[] = {
|
||||
// 2070 NA
|
||||
// 2069,
|
||||
// 2068,
|
||||
// 2067,
|
||||
2067,
|
||||
2066,
|
||||
2065,
|
||||
2064,
|
||||
|
Loading…
Reference in New Issue
Block a user