From b9ab36a37ae061f500da2909e563b93c42ff6336 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 3 Jan 2024 13:01:39 -0500 Subject: Add i as synonym for _ (+/-). --- hcalc.rst | 2 +- input.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hcalc.rst b/hcalc.rst index 0dd2235..b54e6ed 100644 --- a/hcalc.rst +++ b/hcalc.rst @@ -126,7 +126,7 @@ KEYBOARD Decimal point. Only works in decimal mode (base 10); other bases are integer-only. -**_** +**_** **i** Invert sign. The *+/-* key. **=** **Enter** diff --git a/input.c b/input.c index c46a92a..92824e3 100644 --- a/input.c +++ b/input.c @@ -306,6 +306,7 @@ key(char c) break; case '_': /* The +/- key */ + case 'i': if (making_number) { if (input_buf[0] == '-') -- cgit v1.2.3