mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 10:00:43 +08:00
Fix for busted directory check
This commit is contained in:
parent
fc589611e2
commit
faf80588ab
|
@ -793,7 +793,7 @@ static void tokenize( const wchar_t * const buff, int * const color, const int p
|
|||
if( target != 0 )
|
||||
{
|
||||
wcstring dir = target;
|
||||
size_t slash_idx = dir.find(L'/');
|
||||
size_t slash_idx = dir.find_last_of(L'/');
|
||||
struct stat buff;
|
||||
/*
|
||||
If file is in directory other than '.', check
|
||||
|
|
Loading…
Reference in New Issue
Block a user