Mercurial > vim
diff src/drawline.c @ 26690:84d60deb8f82 v8.2.3874
patch 8.2.3874: cannot highlight the number column for a sign
Commit: https://github.com/vim/vim/commit/a80aad717464760a5a50ac2201ce35b24a0cf7a5
Author: James McCoy <jamessan@jamessan.com>
Date: Wed Dec 22 19:45:28 2021 +0000
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 https://github.com/vim/vim/issues/9381)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 22 Dec 2021 21:00:05 +0100 |
parents | e624b4ddbdf0 |
children | fc859aea8cec |
line wrap: on
line diff
--- 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 } }