Simplify conditionals on edit() and other minor changes on interactiveutil.jl
Merge pull request #8738 from brk00/master

Simplify conditionals on edit() and other minor changes on interactiveutil.jl