From a80aad717464760a5a50ac2201ce35b24a0cf7a5 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Wed, 22 Dec 2021 19:45:28 +0000 Subject: patch 8.2.3874: cannot highlight the number column for a sign Problem: Cannot highlight the number column for a sign. Solution: Add the "numhl" argument. (James McCoy, closes #9381) --- src/drawline.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/drawline.c') 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 } } -- cgit v1.2.1