Fix Clang warning
Without this, Clang would complain:
```
In file included from kitty/fonts.c:9:
In file included from kitty/fonts.h:9:
kitty/lineops.h:67:29: error: suggest braces around initialization of subobject
[-Werror,-Wmissing-braces]
const CellAttrs zero = {0};
^
{}
```
This commit is contained in:
parent
40b50332de
commit
0fe7796df0
@ -64,7 +64,7 @@ left_shift_line(Line *line, index_type at, index_type num) {
|
|||||||
COPY_CELL(line, i + num, line, i);
|
COPY_CELL(line, i + num, line, i);
|
||||||
}
|
}
|
||||||
const CellAttrs empty = {.width=1};
|
const CellAttrs empty = {.width=1};
|
||||||
const CellAttrs zero = {0};
|
const CellAttrs zero = {{0}};
|
||||||
if (at < line->xnum && line->gpu_cells[at].attrs.width != 1) {
|
if (at < line->xnum && line->gpu_cells[at].attrs.width != 1) {
|
||||||
line->cpu_cells[at].ch = BLANK_CHAR;
|
line->cpu_cells[at].ch = BLANK_CHAR;
|
||||||
line->cpu_cells[at].hyperlink_id = 0;
|
line->cpu_cells[at].hyperlink_id = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user