My apologies. I tested this incorrectly.
I was testing with the history window open at the start, then adding operations and it works as intended.
However if you first execute a bunch of operations, more than what fits in the history window, then open the history window, you get the wrong behavior.