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

This is for #9319 

cc @RaymondLim