edit command is nearly as complete as can be without backend support.  Handle empty line (command)  case better.