Open editor at selected line also for multi-file diffs in the stage view

Refactor out diff_common_edit(), which extracts the diffed file path and
line numbers so it can be used for the case in stage_request() where
there's not a single file.