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 /highlight.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 'highlight.cpp')
-rw-r--r-- | highlight.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/highlight.cpp b/highlight.cpp index 89bbb0ec..421ba96c 100644 --- a/highlight.cpp +++ b/highlight.cpp @@ -722,16 +722,6 @@ static void tokenize( const wchar_t * const buff, int * const color, const int p is_cmd |= !!path_get_path_string( cmd, tmp, vars ); } - /* - Could not find the command. Maybe it is - a path for a implicit cd command. - */ - if( use_builtin || (use_function && function_exists( L"cd") ) ) - { - wcstring tmp; - is_cmd |= !!path_get_cdpath_string( cmd, tmp, vars ); - } - if( is_cmd ) { color[ tok_get_pos( &tok ) ] = HIGHLIGHT_COMMAND; |