Fixes duplicates getting added to the recently closed files list.
Fixes highlight all not being reset when typing.