From 16aaf4d44b4d80b9ec0f0dc1b720c7013ef8538b Mon Sep 17 00:00:00 2001 From: Hugh Barney Date: Sat, 25 Mar 2017 21:47:17 +0000 Subject: [PATCH] added version number, fixed issue with CR/LF in main loop (curses interprets ENTER as LF not CR) --- zep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zep.c b/zep.c index 6a455c5..e571c50 100644 --- a/zep.c +++ b/zep.c @@ -97,7 +97,7 @@ void fatal(char *msg) refresh(); endwin(); noraw(); - printf("\nzep: %s\n", msg); + printf("\nzep v1.1: %s\n", msg); exit(1); } @@ -739,7 +739,7 @@ int main(int argc, char **argv) (key_return->func)(); } else { /* allow TAB and NEWLINE, any other control char is 'Not Bound' */ - if (*input > 31 || *input == 13 || *input == 9) + if (*input > 31 || *input == 10 || *input == 9) insert(); else { fflush(stdin);