From 5ec673a9f76951547ecfac81a110bfc5c4598d3f Mon Sep 17 00:00:00 2001 From: gunboy001 Date: Fri, 15 Nov 2019 21:53:45 +0100 Subject: [PATCH] check before addchar --- ste.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ste.c b/ste.c index ca967ed..92ff6f6 100644 --- a/ste.c +++ b/ste.c @@ -180,6 +180,7 @@ int main (int argc, char *argv[]) break; default: + if (iscntrl(c)) break; if (c == KEY_STAB) c = '\t'; rowAddChar(&rows.rw[t.cur.y], c, t.cur.x); t.cur.x++;