Enable editing when entering replace mode.
Leave replace mode when disabling editing.
Merge pull request #245 from kagu/edit_replace_mode

Connect replace mode to edit mode