diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-02-09 01:18:51 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-02-09 01:18:51 +0530 |
commit | bc8a28838640ad6d816641fa108f1e40edfe15bd (patch) | |
tree | c4968241e91fa461250c8d8d816b8de3561f00a5 /complete.cpp | |
parent | 3dc56de0ae42b40104337803c392f506491b30d6 (diff) |
Got rid of multiple cd paths, only current directory will be searched while changing directories, implicit cd (entering directory just by typing it's name) is removed.
Diffstat (limited to 'complete.cpp')
-rw-r--r-- | complete.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/complete.cpp b/complete.cpp index c0c3095d..9aca350f 100644 --- a/complete.cpp +++ b/complete.cpp @@ -1035,9 +1035,7 @@ static void complete_cmd( const wchar_t *cmd, std::vector<completion_t> possible_comp; wchar_t *nxt_completion; - const env_var_t cdpath = env_get_string(L"CDPATH"); -// wchar_t *cdpath_cpy = wcsdup( cdpath?cdpath:L"." ); - wchar_t *cdpath_cpy = wcsdup( !cdpath.missing()?cdpath.c_str():L"." ); + wchar_t *cdpath_cpy = wcsdup(L"."); if( (wcschr( cmd, L'/') != 0) || (cmd[0] == L'~' ) ) { |