Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Commit

Permalink
handle resize
Browse files Browse the repository at this point in the history
  • Loading branch information
MorganPeterson committed Jan 3, 2022
1 parent a14fcf1 commit 28cab7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ term_signal(int32_t n) {
case SIGSEGV:
die("SIGSEGV", n);
break;
case SIGWINCH:
endwin();
refresh();
clear();
refresh();
break;
default:
die("UNKNOWN", n);
}
Expand Down Expand Up @@ -131,3 +137,4 @@ fatal(char *msg) {
fprintf(stderr, msg, "editor");
exit(1);
}

4 changes: 4 additions & 0 deletions src/regex.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* regex.c, editor, Morgan Peterson, Public Domain, 2021
*/

#include "header.h"

static char*
Expand Down

0 comments on commit 28cab7a

Please sign in to comment.