Set focus in new pane only if there is a file in original pane

This is for #9319 

cc @RaymondLim 
this will return zero if there is a temporary file open in that pane. You could do something like `getCurrentlyViewedFile(FIRST_PANE)` to see if the result is truthy.