After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 163538 - Bkspc results in mal-formed expression
Bkspc results in mal-formed expression
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
5.5.x
Other All
: Normal normal
: ---
Assigned To: Sami Pietilä
gnome-utils Maintainers
: 329354 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-01-10 10:30 UTC by Raj
Modified: 2006-05-08 16:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Raj 2005-01-10 10:30:43 UTC
- Launch gcalctool in basic mode.
- Click on digit '9'
- Click on '+/-'
- Parantheses appear around '9'. -(9)
- Click on 'Bksp'

I expected the parantheses to disappear, but what i get is -(9 
which is a malformed expression. There is no way for me to undo the '+/-'
click expect for clearing the whole thing.
Comment 1 Venkatesan 2005-01-12 07:08:12 UTC
Presently, the GtkTextView is not editable directly. Each character entry is
monitored and corresponding action is taken by altering an internal expression
string. This is to prevent entering illegal characters like alphabets etc.. but
the downside is that insertion and deletion at arbitrary positions in the text
view by using arrow keys and then deleting/inserting is not possible.. the
backspace key always deletes the last character regardless of the position of
cursor.. i think this needs to be changed... 
Comment 2 Vincent Noel 2005-01-12 15:44:29 UTC
Re-assigning to gcalctool
Comment 3 Rich Burridge 2005-01-12 16:45:19 UTC
Reassigning to Sami as this is inherent to the way the new
expression parser for arithmetic operator precedence works.
I suspect this is just a duplicate of bug #136115 though.
Comment 4 Sami Pietilä 2005-01-12 18:38:19 UTC
Unfortunately gcalctool does not currently support undo/redo functionality,
although the idea has come up before.

Perhaps this is one issue for next development version of gcalctool.
Comment 5 Sami Pietilä 2006-03-29 21:48:12 UTC
*** Bug 329354 has been marked as a duplicate of this bug. ***
Comment 6 Sami Pietilä 2006-05-08 16:17:20 UTC
CVS HEAD now has redo/undo functionality.