0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.1.1712: signs in number column cause text to be misaligned

Problem:    Signs in number column cause text to be misaligned.
Solution:   Improve alignment. (Yasuhiro Matsumoto, closes #4694)
This commit is contained in:
Bram Moolenaar
2019-07-18 12:48:16 +02:00
parent acf7544cf6
commit d6bcff4577
3 changed files with 16 additions and 2 deletions

View File

@@ -3120,8 +3120,13 @@ get_sign_display_info(
{
if (nrcol)
{
sprintf((char *)extra, "%*s ", number_width(wp),
*pp_extra);
int n, width = number_width(wp) - 2;
for (n = 0; n < width; n++)
extra[n] = ' ';
extra[n] = 0;
STRCAT(extra, *pp_extra);
STRCAT(extra, " ");
*pp_extra = extra;
}
*c_extrap = NUL;