GNOME Bugzilla – Bug 163538
Bkspc results in mal-formed expression
Last modified: 2006-05-08 16:17:20 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.
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...
Re-assigning to gcalctool
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.
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.
*** Bug 329354 has been marked as a duplicate of this bug. ***
CVS HEAD now has redo/undo functionality.