Commit 5905d16a authored by Ole Christian Eidheim's avatar Ole Christian Eidheim

Fixes bold marking of ctags result

parent 0a0c78fa
...@@ -109,7 +109,7 @@ Ctags::Location Ctags::get_location(const std::string &line_, bool markup) { ...@@ -109,7 +109,7 @@ Ctags::Location Ctags::get_location(const std::string &line_, bool markup) {
if(markup) { if(markup) {
location.source = Glib::Markup::escape_text(location.source); location.source = Glib::Markup::escape_text(location.source);
auto symbol = Glib::Markup::escape_text(location.symbol); std::string symbol = Glib::Markup::escape_text(location.symbol);
pos = -1; pos = -1;
while((pos = location.source.find(symbol, pos + 1)) != std::string::npos) { while((pos = location.source.find(symbol, pos + 1)) != std::string::npos) {
location.source.insert(pos + symbol.size(), "</b>"); location.source.insert(pos + symbol.size(), "</b>");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment