Modify EndEdit to use a more descriptive var name

This also makes this function more in line with similar functions in
this file, which prefer the more descriptive `edit` over simply `e`.