diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-06-13 15:15:11 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-06-13 15:15:11 -0700 |
commit | 735195e8ea99d747e92a71b9b0233948e5de60fa (patch) | |
tree | e4229b05ee3596bd6ed50747889228398e5b18ba /env.cpp | |
parent | 17c2d76c5ec935ab320badee834260bd3a5a4340 (diff) |
Teach env_universal_remove to directly report whether the variable was
successfully removed.
Diffstat (limited to 'env.cpp')
-rw-r--r-- | env.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -917,7 +917,7 @@ int env_remove(const wcstring &key, int var_mode) !(var_mode & ENV_GLOBAL) && !(var_mode & ENV_LOCAL)) { - erased = ! env_universal_remove(key.c_str()); + erased = env_universal_remove(key); } react_to_variable_change(key); |