Fixed cd autosuggestion for absolute paths

Removed some unnecessary path cleanup that is_potential_path now handles
This commit is contained in:
ridiculousfish
2012-05-13 20:49:14 -07:00
parent 129525af21
commit f5442bdd4a
4 changed files with 20 additions and 33 deletions

View File

@@ -616,6 +616,8 @@ static void test_is_potential_path()
assert(! is_potential_path(L"/tmp/is_potential_path_test/al/", wds, false, &tmp));
assert(! is_potential_path(L"/tmp/is_potential_path_test/ar", wds, false, &tmp));
assert(is_potential_path(L"/usr", wds, true, &tmp) && tmp == L"/usr/");
}
/** Test the 'test' builtin */