mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 08:51:14 -03:00
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.
This commit is contained in:
@@ -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'~' ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user