Digit is transformed into exponent if moving between typing of two *
We'll try compute the product of all the digits of a number
- move the caret after the first digit
- type * :
- Move right :
- Type another *
What should be observed :
A "multiply" sign should be added :
What is observed instead :
The digit is transformed into an exponent sign :
If you type anything else (like pressing space and deleting it), the bug doesn't occur.
The bug is probably due to a bad test for converting ** into ^ :
- first, it should detect that another key (arrow, shortcut, and even simple modifier should be counted as other keys) has been pressed. Or it should be based on the character preceding the caret, not the one previously pressed.
- in any case, it should never replace anything than a *
$ apt show gnome-calculator Package: gnome-calculator Version: 3.22.3-1 Priority: optional Section: math Maintainer: Debian GNOME Maintainers <firstname.lastname@example.org> Installed-Size: 5 691 kB
I opened the bug on Launchpad (https://bugs.launchpad.net/ubuntu/+source/gnome-calculator/+bug/1800284), Sebastien Bacher asked me to open it here.