From 124296ee19a094a2a5218f088ed57ec0a3ed8aeb Mon Sep 17 00:00:00 2001
From: Yorhel <git@yorhel.nl>
Date: Fri, 24 Apr 2009 18:17:34 +0200
Subject: [PATCH] Fixed infinite calc_process() on error

---
 src/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c
index 754fc39..78dbe2e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -155,7 +155,7 @@ int main(int argc, char **argv) {
   while(pstate != ST_QUIT) {
     if(pstate == ST_CALC)
       calc_process();
-    if(pstate == ST_DEL)
+    else if(pstate == ST_DEL)
       delete_process();
     else if(input_handle(0))
       break;
-- 
GitLab