Browse files

Fix #27

Need to update the new state after the switch is done to display the correct env information
  • Loading branch information...
1 parent 975c644 commit 5e0b758b20197890505653558ae808de216542ee @samoht samoht committed Jun 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/client.ml
View
2 src/client.ml
@@ -1212,7 +1212,7 @@ let switch clone alias ocaml_version =
; wish_remove = []
; wish_upgrade = [] };
- let env = get_env t in
+ let env = get_env (load_state ()) in
List.iter (fun (k,v) ->
Globals.msg "%s=%s\n" k v
) env.new_env

0 comments on commit 5e0b758

Please sign in to comment.