diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-30 09:59:48 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-01-30 09:59:48 -0800 |
commit | ed66a46113d82bd570ee4ec908a29d1918969036 (patch) | |
tree | af213cbe7b06e1578a7026a62ad897a06570afb3 /highlight.cpp | |
parent | 8e4e30d266dd662b7603bbbf7be175ef49848367 (diff) |
Fix for is_potential_path that caused all strings to be reported as paths
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 c1d2f383..28d0ec77 100644 --- a/highlight.cpp +++ b/highlight.cpp @@ -151,7 +151,7 @@ static bool is_potential_path( const wcstring &cpath ) wcstring ent; while (wreaddir(dir, ent)) { - if( wcsncmp( base_name.c_str(), base_name.c_str(), base_name.length() ) == 0 ) + if( wcsncmp( ent.c_str(), base_name.c_str(), base_name.length() ) == 0 ) { res = true; break; |