(#130) Don't erase flags in EDITOR
Add regression tests for EDITOR that has flags
Merge pull request #131 from elyscape/keep_editor_flags

Keep editor flags