Fix a regression that was introduced during the upgrade to wxWidgets 3.1.0 where the commaner input would retain its horizontal scroll position when its text was replaced. This was especially bad when a long line was replaced by a short one, in which case the new text might not be visible at all.