Skip to content

Commit

Permalink
Support highlight for CtrlP with devicons
Browse files Browse the repository at this point in the history
  • Loading branch information
phongnh committed Mar 6, 2024
1 parent 814961a commit e8c290c
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 e8c290c

Please sign in to comment.