mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
feat(api): combined highlights in nvim_eval_statusline()
Problem: Combined highlighting was not applied to nvim_eval_statusline(), and 'statuscolumn' sign segment/numhl highlights. Solution: Add an additional `groups` element to the return value of `nvim_eval_statusline()->highlights`. This is an array of stacked highlight groups (highest priority last). Also resolve combined highlights for the 'statuscolumn' sign segment/numhl highlights. Expose/synchronize some drawline.c logic that is now mimicked in three different places.
This commit is contained in:
@@ -856,9 +856,9 @@ static const uint32_t sign_filter[4] = {[kMTMetaSignText] = kMTFilterSelect,
|
||||
/// Return the sign attributes on the currently refreshed row.
|
||||
///
|
||||
/// @param[out] sattrs Output array for sign text and texthl id
|
||||
/// @param[out] line_attr Highest priority linehl id
|
||||
/// @param[out] cul_attr Highest priority culhl id
|
||||
/// @param[out] num_attr Highest priority numhl id
|
||||
/// @param[out] line_id Highest priority linehl id
|
||||
/// @param[out] cul_id Highest priority culhl id
|
||||
/// @param[out] num_id Highest priority numhl id
|
||||
void decor_redraw_signs(win_T *wp, buf_T *buf, int row, SignTextAttrs sattrs[], int *line_id,
|
||||
int *cul_id, int *num_id)
|
||||
{
|
||||
|
Reference in New Issue
Block a user