ecere/gui/EditBox: Improvements to prevent leaving bad trailing spaces