vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 552da01fd015056dd4a9cb0368e6ab621360fcbc parent cbae4044a13d1754659c12d9c80c8fd0b17698ba Author: Marc André Tanner <mat@brain-dump.org> Date: Fri, 1 May 2020 23:48:49 +0200 vt100: do not crash if termkey is not yet initialized Previously calling die would segfault, e.g: $ vis . Diffstat:
| M | ui-terminal-vt100.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/ui-terminal-vt100.c b/ui-terminal-vt100.c @@ -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);