Fix for bug #7986: tab in edit introduces garbage values.