Only switch windows when finishing a git-commit