Added fix to correctly handle switching to previous buffer
Merge with upstream
Merge pull request #3 from cmoesgaard/master

Fix to handle focus when splitting