v1.8b Improved modifiction detection, minimum size for window, caret doesn't reset on failed enc/dec