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);
|
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);
|
||||||
|
@ -373,7 +373,7 @@ static int included_patches[] = {
|
|||||||
// 2070 NA
|
// 2070 NA
|
||||||
// 2069,
|
// 2069,
|
||||||
// 2068,
|
// 2068,
|
||||||
// 2067,
|
2067,
|
||||||
2066,
|
2066,
|
||||||
2065,
|
2065,
|
||||||
2064,
|
2064,
|
||||||
|
Loading…
Reference in New Issue
Block a user