- Actual resolution of Bug #1001. The Edit command was actually changing
  the working directory without going back to the original one
  afterwards.
This commit is contained in:
Louis-Claude Canon 2012-06-30 17:23:33 +02:00 committed by Paul Beckingham
parent e1407437e0
commit b1e63e575a
3 changed files with 12 additions and 5 deletions

View file

@ -31,6 +31,7 @@
#include <fstream>
#include <sstream>
#include <algorithm>
#include <assert.h>
#include <pwd.h>
#include <stdlib.h>
#include <string.h>
@ -395,8 +396,8 @@ int Context::dispatch (std::string &out)
return rc;
}
if (commands["help"])
return commands["help"]->execute (out);
assert (commands["help"]);
return commands["help"]->execute (out);
return 1;
}