Fix to handle focus when splitting

Added a fix to correctly keep focus of original window when using a command