Merge branch 'fix-clang-warning' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2021-08-20 05:56:31 +05:30
commit 6fc7b3d946
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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;