Remove unnecessary branch

This commit is contained in:
Kovid Goyal 2025-02-08 13:51:09 +05:30
parent 3b8f3dc69e
commit 3f54b83991
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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;