summaryrefslogtreecommitdiff
path: root/src/drawline.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-12-22 19:45:28 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-22 19:45:28 +0000
commita80aad717464760a5a50ac2201ce35b24a0cf7a5 (patch)
tree968eca4115530a2d08a151f5c3cc957b4b43d69d /src/drawline.c
parent82b3b4c6cf2973fe767f8e2311482af0bd95267e (diff)
downloadvim-git-a80aad717464760a5a50ac2201ce35b24a0cf7a5.tar.gz
patch 8.2.3874: cannot highlight the number column for a signv8.2.3874
Problem: Cannot highlight the number column for a sign. Solution: Add the "numhl" argument. (James McCoy, closes #9381)
Diffstat (limited to 'src/drawline.c')
-rw-r--r--src/drawline.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/drawline.c b/src/drawline.c
index 3106196e9..7125b800f 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -377,6 +377,7 @@ win_line(
#ifdef FEAT_SIGNS
int sign_present = FALSE;
sign_attrs_T sattr;
+ int num_attr = 0; // attribute for the number column
#endif
#ifdef FEAT_ARABIC
int prev_c = 0; // previous Arabic character
@@ -699,6 +700,8 @@ win_line(
#ifdef FEAT_SIGNS
sign_present = buf_get_signattrs(wp, lnum, &sattr);
+ if (sign_present)
+ num_attr = sattr.sat_numhl;
#endif
#ifdef LINE_ATTR
@@ -1206,6 +1209,10 @@ win_line(
char_attr = hl_combine_attr(wcr_attr,
HL_ATTR(HLF_LNB));
}
+#ifdef FEAT_SIGNS
+ if (num_attr)
+ char_attr = num_attr;
+#endif
}
}