From d56b4842350c344ce890787da3818f30e2a03651 Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 23 Nov 2015 18:55:46 +0100 Subject: [PATCH] Added line numbers to goto method, and at the same time got rid of duplicate rows if declaration and implementation is in the same file. --- src/source_clang.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source_clang.cc b/src/source_clang.cc index 09e15c2..8fb5ed0 100644 --- a/src/source_clang.cc +++ b/src/source_clang.cc @@ -1112,7 +1112,7 @@ Source::ClangViewAutocomplete(file_path, project_path, language) { if(methods.size()==0) return; for(auto &method: methods) { - std::string row=Glib::Markup::escape_text(method.first); + std::string row=std::to_string(method.second.line)+": "+Glib::Markup::escape_text(method.first); //Add bold method token size_t token_end_pos=row.find('('); if(token_end_pos==0 || token_end_pos==std::string::npos)