Skip to content

Commit

Permalink
Merge pull request #61 from phongnh/master
Browse files Browse the repository at this point in the history
Support highlight for CtrlP with devicons
  • Loading branch information
nixprime authored Mar 6, 2024
2 parents 814961a + e8c290c commit 1a5fc1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ctrlp_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ void get_highlight_regexes(boost::string_ref const mode,
for (char const c : line_prefix) {
write_char(c);
}
// support highlight for CtrlP with devicons
regex += R"(\%\(\.\+\s\+\)\?)";
std::size_t i = 0;
for (; i < group.first; i++) {
write_char(item[i]);
Expand Down

0 comments on commit 1a5fc1b

Please sign in to comment.