mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
vim-patch:9.1.1437: MS-Windows: internal compile error in uc_list() (#34379)
Problem: MS-Windows: internal compile error in uc_list() with VS 17.14
(ibear)
Solution: refactor code slightly (Mike Williams)
fixes: vim/vim#17402
closes: vim/vim#17464
0174d8f386
Co-authored-by: Mike Williams <mrmrdubya@gmail.com>
This commit is contained in:
@@ -491,17 +491,21 @@ static void uc_list(char *name, size_t name_len)
|
||||
msg_putchar('|');
|
||||
len--;
|
||||
}
|
||||
while (len-- > 0) {
|
||||
msg_putchar(' ');
|
||||
if (len != 0) {
|
||||
msg_puts(&" "[4 - len]);
|
||||
}
|
||||
|
||||
msg_outtrans(cmd->uc_name, HLF_D, false);
|
||||
len = strlen(cmd->uc_name) + 4;
|
||||
|
||||
do {
|
||||
msg_putchar(' ');
|
||||
len++;
|
||||
} while (len < 22);
|
||||
if (len < 21) {
|
||||
// Field padding spaces 12345678901234567
|
||||
static char spaces[18] = " ";
|
||||
msg_puts(&spaces[len - 4]);
|
||||
len = 21;
|
||||
}
|
||||
msg_putchar(' ');
|
||||
len++;
|
||||
|
||||
// "over" is how much longer the name is than the column width for
|
||||
// the name, we'll try to align what comes after.
|
||||
|
Reference in New Issue
Block a user