Fix history retrieval in the console

This fixes #282 "Need to press <up> twice in the console". Full info in issue.

When we reach the max history limit we remove an entry from the history array but aren't updating our history pointer (`previousCommandOffset`) to match.