files: save the marked region only when we've prompted for a file name

Otherwise we would overwrite the current file with just the selection.

This fixes https://savannah.gnu.org/bugs/?52482.
1 file changed