Fix file inlining

A small fix related to #915. It's not clear to me how to make tests for the edit command.

@matthewrmshin please review.