You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting! Thanks for reporting. I've added some tests in cf8f230, which demonstrate that the error is not in the core context/evaluation engine. However, I've successfully repro'd the issue locally. Therefore it looks like the operation is getting evaluated twice somehow. I will continue to investigate.
Fixes#14.
We'd been evaluating expressions twice: once to get a numeric result
to insert into the history, and again to get the string output which
was formatted according to user request. That turned out to be a bad
idea when the expression contained a back-reference, because the
back-reference was updated before the display version was re-calculated.
Evaluating once and then updating history is absolutely the way to
go here.
my program and OS versions
steps to reproduce 1
steps to reproduce 2
steps to reproduce 3
The text was updated successfully, but these errors were encountered: