mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-24 18:07:01 +00:00
...
This commit is contained in:
parent
49d664bb0d
commit
9935b5ddb2
1 changed files with 1 additions and 1 deletions
|
|
@ -153,7 +153,7 @@ linebuf_clear_lines(LineBuf *self, const Cursor *cursor, index_type start, index
|
|||
#endif
|
||||
#define lineptr(which, i) which##_lineptr(self, self->line_map[i])
|
||||
GPUCell *first_gpu_line = lineptr(gpu, start);
|
||||
GPUCell gc = cursor_as_gpu_cell(cursor);
|
||||
const GPUCell gc = cursor_as_gpu_cell(cursor);
|
||||
for (index_type i = 0; i < self->xnum; i++) memcpy(first_gpu_line + i, &gc, sizeof(GPUCell));
|
||||
const size_t cpu_stride = sizeof(CPUCell) * self->xnum;
|
||||
memset(lineptr(cpu, start), 0, cpu_stride);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue