From 530cac53c586ef201eb5c252d6b6333f03d27ea3 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 2 Nov 2018 23:49:07 +0100 Subject: [PATCH] bug 337: keep '-' as sign of number following tc1, tc2 --- src/frontend/inpcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index c3e252826..325345b28 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -5728,7 +5728,8 @@ inp_modify_exp(char* expr) } else { wl->wl_word = tprintf("({%s})", buf); } - + /* '-' following the '=' is attached to number as its sign */ + c_arith = TRUE; } else { /* {} around all other tokens */ wl->wl_word = tprintf("({%s})", buf);