When updating the edited line, remember to update attributes, too.