patch 8.1.1570: icon signs not displayed properly in the number column
Problem: Icon signs not displayed properly in the number column.
Solution: Display them properly. (Yegappan Lakshmanan, closes #4559)
diff --git a/src/screen.c b/src/screen.c
index 914bf37..05639c3 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -3088,15 +3088,31 @@
if (gui.in_use && icon_sign != 0)
{
// Use the image in this position.
- *c_extrap = SIGN_BYTE;
- *c_finalp = NUL;
+ if (nrcol)
+ {
+ *c_extrap = NUL;
+ sprintf((char *)extra, "%-*c ", number_width(wp), SIGN_BYTE);
+ *pp_extra = extra;
+ *n_extrap = (int)STRLEN(*pp_extra);
+ }
+ else
+ *c_extrap = SIGN_BYTE;
# ifdef FEAT_NETBEANS_INTG
if (buf_signcount(wp->w_buffer, lnum) > 1)
{
- *c_extrap = MULTISIGN_BYTE;
- *c_finalp = NUL;
+ if (nrcol)
+ {
+ *c_extrap = NUL;
+ sprintf((char *)extra, "%-*c ", number_width(wp),
+ MULTISIGN_BYTE);
+ *pp_extra = extra;
+ *n_extrap = (int)STRLEN(*pp_extra);
+ }
+ else
+ *c_extrap = MULTISIGN_BYTE;
}
# endif
+ *c_finalp = NUL;
*char_attrp = icon_sign;
}
else
@@ -3108,7 +3124,7 @@
{
if (nrcol)
{
- sprintf((char *)extra, "%-*s ", number_width(wp),
+ sprintf((char *)extra, "%*s ", number_width(wp),
*pp_extra);
*pp_extra = extra;
}