Skip to content

Commit

Permalink
vt100: do not crash if termkey is not yet initialized
Browse files Browse the repository at this point in the history
Previously calling die would segfault, e.g:

 $ vis .
  • Loading branch information
martanne committed May 12, 2020
1 parent 7648280 commit f5dbc9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui-terminal-vt100.c
Expand Up @@ -186,6 +186,7 @@ static int ui_vt100_colors(Ui *ui) {
}

static void ui_vt100_suspend(UiTerm *tui) {
if (!tui->termkey) return;
termkey_stop(tui->termkey);
cursor_visible(true);
screen_alternate(false);
Expand Down

0 comments on commit f5dbc9d

Please sign in to comment.