Fix display of masked data in TextEdit