Issue #22670:fix deleting of quote when all lines deleted