Galculator 2.1.2 on an up-to-date 64-bit Arch Linux system:
If you do the following sequence of button clicks in RPN mode:
ac, 2, ent, 2, +, 2, +
you end up with 6 in the X register, as you'd expect.
But if you enter 2 in, say, a gnumeric cell and then copy it to the clipboard, the following sequence:
ac, <ctrl-v or="" paste="" from="" the="" edit="" menu="">, ent, <ctrl-v or="" paste="" from="" the="" edit="" menu="">, +, <ctrl-v or="" paste="" from="" the="" edit="" menu="">, +
you end up with 2 in the X register, which is not correct. This is the same calculation as the first example, except the entries are coming from the clipboard, rather than the keyboard. It looks like what is happening is that the program is failing to do a stack push when entries are made by pasting after an operation (+ in this case), as is done when entries are made from the keyboard; pasting simply replaces what is in the X register without doing the expected push.
It seems to me that entries made by pasting should behave as if they had been entered from the keyboard. The documentation, which I have to say is less than minimal, says "the pasted string is parsed to virtual key presses", which, while not completely clear, suggests that what I think is the correct behavior is what was intended and that the actual behavior is due to a bug.
Log in to post a comment.