From ed66a46113d82bd570ee4ec908a29d1918969036 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 30 Jan 2012 09:59:48 -0800 Subject: [PATCH] Fix for is_potential_path that caused all strings to be reported as paths --- highlight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highlight.cpp b/highlight.cpp index c1d2f3839..28d0ec778 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;