Commits

Arun Mahapatra  committed 6c59295 Merge

Merged with parent

  • Participants
  • Parent commits e71302e, 58ebd8f

Comments (0)

Files changed (1)

File VirtualEnvWrapper/VirtualenvWrapperTabExpansion.psm1

 #==============================================================================
 # Ensure the old environment is restored when we exit. (Based on PowerTab.)
 #------------------------------------------------------------------------------
-$_oldTabExpansion = Get-Content Function:TabExpansion
+if($host.Version.Major -eq 3){
+	$_oldTabExpansion = Get-Content Function:TabExpansion2
+}else{
+	$_oldTabExpansion = Get-Content Function:TabExpansion
+}
 
 $module = $MyInvocation.MyCommand.ScriptBlock.Module 
 $module.OnRemove = {