diff --git a/kitty/screen.c b/kitty/screen.c index 5efb8a596..6bbfdb63c 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -241,7 +241,6 @@ screen_resize(Screen *self, unsigned int lines, unsigned int columns) { self->is_dirty = true; self->selection = EMPTY_SELECTION; self->url_range = EMPTY_SELECTION; - self->selection_updated_once = false; /* printf("old_cursor: (%u, %u) new_cursor: (%u, %u) beyond_content: %d\n", self->cursor->x, self->cursor->y, cursor_x, cursor_y, cursor_is_beyond_content); */ self->cursor->x = MIN(cursor_x, self->columns - 1); self->cursor->y = MIN(cursor_y, self->lines - 1); @@ -1716,8 +1715,6 @@ screen_has_selection(Screen *self) { void screen_apply_selection(Screen *self, void *address, size_t size) { memset(address, 0, size); - self->last_selection_scrolled_by = self->scrolled_by; - self->selection_updated_once = true; apply_selection(self, address, &self->selection, &self->last_rendered.selection, 1); apply_selection(self, address, &self->url_range, &self->last_rendered.url, 2); } diff --git a/kitty/screen.h b/kitty/screen.h index e500b335c..552daad64 100644 --- a/kitty/screen.h +++ b/kitty/screen.h @@ -75,7 +75,7 @@ typedef struct { typedef struct { PyObject_HEAD - unsigned int columns, lines, margin_top, margin_bottom, charset, scrolled_by, last_selection_scrolled_by; + unsigned int columns, lines, margin_top, margin_bottom, charset, scrolled_by; double pending_scroll_pixels; CellPixelSize cell_size; OverlayLine overlay_line; @@ -87,7 +87,7 @@ typedef struct { IterationData selection, url; unsigned int cursor_x, cursor_y; } last_rendered; - bool use_latin1, selection_updated_once, is_dirty, scroll_changed, reload_all_gpu_data; + bool use_latin1, is_dirty, scroll_changed, reload_all_gpu_data; Cursor *cursor; SavepointBuffer main_savepoints, alt_savepoints; SavemodesBuffer modes_savepoints;