Skip to content

Commit

Permalink
Fix project directory search not returning valid directory paths
Browse files Browse the repository at this point in the history
  • Loading branch information
crosire committed Dec 11, 2018
1 parent 01323a7 commit 122381e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/blink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ static std::string longest_path(const std::vector<std::string> &paths)
length = l;
}

length = paths[0].find_last_of("\\/", length);

return paths[0].substr(0, length);
}

Expand Down

0 comments on commit 122381e

Please sign in to comment.