Fix shell tab-completion PATH parsing.
This commit is contained in:
parent
d511bfb75b
commit
3bef590a0f
|
@ -1804,7 +1804,7 @@ size_t do_complete(char*** completions_ptr,
|
||||||
char* path_input = path;
|
char* path_input = path;
|
||||||
char* saved_ptr;
|
char* saved_ptr;
|
||||||
char* component;
|
char* component;
|
||||||
while ( (component = strtok_r(path_input, " ", &saved_ptr)) )
|
while ( (component = strtok_r(path_input, ":", &saved_ptr)) )
|
||||||
{
|
{
|
||||||
if ( DIR* dir = opendir(component) )
|
if ( DIR* dir = opendir(component) )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue