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:
Luflosi 2021-08-19 22:52:36 +02:00
parent 40b50332de
commit 0fe7796df0
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

@ -64,7 +64,7 @@ left_shift_line(Line *line, index_type at, index_type num) {
COPY_CELL(line, i + num, line, i);
}
const CellAttrs empty = {.width=1};
const CellAttrs zero = {0};
const CellAttrs zero = {{0}};
if (at < line->xnum && line->gpu_cells[at].attrs.width != 1) {
line->cpu_cells[at].ch = BLANK_CHAR;
line->cpu_cells[at].hyperlink_id = 0;