From 3f54b8399156d8b50f8b418434a602105c1dd362 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 8 Feb 2025 13:51:09 +0530 Subject: [PATCH] Remove unnecessary branch --- kitty/screen.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kitty/screen.c b/kitty/screen.c index a42cc396b..108db9376 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -593,10 +593,7 @@ selection_intersects_screen_lines(const Selections *selections, int a, int b) { static void init_text_loop_line(Screen *self, text_loop_state *s) { - if (self->modes.mIRM) { - linebuf_init_line(self->linebuf, self->cursor->y); - s->cp = self->linebuf->line->cpu_cells; s->gp = self->linebuf->line->gpu_cells; - } else linebuf_init_cells(self->linebuf, self->cursor->y, &s->cp, &s->gp); + linebuf_init_cells(self->linebuf, self->cursor->y, &s->cp, &s->gp); if (selection_has_screen_line(&self->selections, self->cursor->y)) clear_selection(&self->selections); linebuf_mark_line_dirty(self->linebuf, self->cursor->y); s->image_placeholder_marked = false;