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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user