From 5905d16abe2dadf6c9eefa899ed30d42be404402 Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 30 Jan 2020 12:02:50 +0100 Subject: [PATCH] Fixes bold marking of ctags result --- src/ctags.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ctags.cc b/src/ctags.cc index ee5042e..1fa7fdc 100644 --- a/src/ctags.cc +++ b/src/ctags.cc @@ -109,7 +109,7 @@ Ctags::Location Ctags::get_location(const std::string &line_, bool markup) { if(markup) { 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; while((pos = location.source.find(symbol, pos + 1)) != std::string::npos) { location.source.insert(pos + symbol.size(), "");