[geany/geany] 1cfa44: Make tm_get_current_function() find methods too

Colomban Wendling git-noreply at xxxxx
Mon Sep 17 12:44:33 UTC 2012


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Mon, 17 Sep 2012 12:44:33
Commit:      1cfa44ff629f8dbcbf4153cce97cfccf185f9483
             https://github.com/geany/geany/commit/1cfa44ff629f8dbcbf4153cce97cfccf185f9483

Log Message:
-----------
Make tm_get_current_function() find methods too


Modified Paths:
--------------
    tagmanager/src/tm_workspace.c
    tagmanager/src/tm_workspace.h

Modified: tagmanager/src/tm_workspace.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -735,7 +735,7 @@ static gboolean match_langs(gint lang, const TMTag *tag)
 const TMTag *
 tm_get_current_function (GPtrArray * file_tags, const gulong line)
 {
-	GPtrArray *const local = tm_tags_extract (file_tags, tm_tag_function_t);
+	GPtrArray *const local = tm_tags_extract (file_tags, tm_tag_function_t | tm_tag_method_t);
 	TMTag *function_tag = NULL;
 	if (local && local->len)
 	{


Modified: tagmanager/src/tm_workspace.h
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -152,7 +152,7 @@ const GPtrArray *tm_workspace_find_scope_members(const GPtrArray *file_tags,
 tm_workspace_find_namespace_members (const GPtrArray * file_tags, const char *name,
                                      gboolean search_global);
 
-/* Returns TMTag to function which "own" given line
+/* Returns TMTag to function or method which "own" given line
  \param line Current line in edited file.
  \param file_tags A GPtrArray of edited file TMTag pointers.
  \return TMTag pointers to owner function. */


@@ Diff output truncated at 100000 characters. @@


--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).



More information about the Commits mailing list