Avoid unnecessary if

This commit is contained in:
Kovid Goyal 2024-02-02 15:12:17 +05:30
parent f1fe0bf40a
commit f3830aa854
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1534,9 +1534,7 @@ screen_reverse_scroll_and_fill_from_scrollback(Screen *self, unsigned int count)
void
screen_carriage_return(Screen *self) {
if (self->cursor->x != 0) {
self->cursor->x = 0;
}
self->cursor->x = 0;
}
void