diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-13 16:38:35 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-13 16:38:35 -0800 |
commit | faf80588abfd53c4021c099010ac1b21efb1cbcc (patch) | |
tree | 43f7b194896f517da60cf028586cc8a5d252a628 /highlight.cpp | |
parent | fc589611e2bfb75ffb1737c02f4819d55a9cfa78 (diff) |
Fix for busted directory check
Diffstat (limited to 'highlight.cpp')
-rw-r--r-- | highlight.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/highlight.cpp b/highlight.cpp index 8355e8a3..655d083d 100644 --- a/highlight.cpp +++ b/highlight.cpp @@ -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 |