fix initial tabulations

This commit is contained in:
Jeff Epler 2024-10-11 11:40:44 -05:00
parent e47e743077
commit 07b7aae815

View file

@ -1184,8 +1184,9 @@ struct lw_terminal_vt100 *lw_terminal_vt100_init(void *user_data,
this->tabulations = malloc(132);
if (this->tabulations == NULL)
goto free_frozen_screen;
if (this->tabulations == NULL)
return NULL;
for(int i=0; i<132; i++) {
this->tabulations[i] = (i && i % 8 == 0) ? '|' : '-';
}
this->margin_top = 0;
this->margin_bottom = this->height - 1;
this->selected_charset = 1;