refactor(signs): handle non-sign attrs separately (#19784)

This commit is contained in:
Lewis Russell
2022-08-16 11:03:44 +01:00
committed by GitHub
parent 4f0a0a2933
commit 9a4b8dc603
5 changed files with 149 additions and 136 deletions

View File

@@ -33,15 +33,11 @@ struct sign_entry {
};
/// Sign attributes. Used by the screen refresh routines.
typedef struct sign_attrs_S {
int sat_typenr;
char_u *sat_text;
int sat_texthl;
int sat_linehl;
int sat_culhl;
int sat_numhl;
int sat_prio; // Used for inserting extmark signs
} sign_attrs_T;
typedef struct {
char_u *text;
int hl_attr_id;
int priority;
} SignTextAttrs;
#define SIGN_SHOW_MAX 9