mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-14 20:44:32 +02:00
Get rid of bits from CellAttrs
This commit is contained in:
@@ -295,7 +295,7 @@ PyInit_fast_data_types(void) {
|
||||
if (!init_fonts(m)) return NULL;
|
||||
|
||||
CellAttrs a;
|
||||
#define s(name, attr) { a.val = 0; a.bits.attr = 1; PyModule_AddIntConstant(m, #name, shift_to_first_set_bit(a)); }
|
||||
#define s(name, attr) { a.val = 0; a.attr = 1; PyModule_AddIntConstant(m, #name, shift_to_first_set_bit(a)); }
|
||||
s(BOLD, bold); s(ITALIC, italic); s(REVERSE, reverse); s(MARK, mark);
|
||||
s(STRIKETHROUGH, strike); s(DIM, dim); s(DECORATION, decoration);
|
||||
#undef s
|
||||
|
||||
Reference in New Issue
Block a user