-- renaming to global functions and global namespaces

hotfix
Index: ../External/Plugins/CodeRefactor/Provider/RefactoringHelper.cs
===================================================================
---../External/Plugins/CodeRefactor/Provider/RefactoringHelper.cs (revision 2785)
+++ ../External/Plugins/CodeRefactor/Provider/RefactoringHelper.cs (working copy)
@@ -195,10 +196,17 @@
         static public bool DoesMatchPointToTarget(ScintillaNet.ScintillaControl Sci, SearchMatch match, ASResult target, DocumentHelper associatedDocumentHelper)
         {
             if (Sci == null || target == null) return false;
-            bool matchMember = target.InFile != null && target.Member != null;
+
+            FileModel targetInFile = null;
+
+            if (target.InFile != null)
+                targetInFile = target.InFile;
+            else if(target.Member != null)
+                targetInFile = target.Member.InFile;
+
+            bool matchMember = targetInFile != null && target.Member != null;
             bool matchType = target.Member == null && target.IsStatic && target.Type != null;
             if (!matchMember && !matchType) return false;
-
             ASResult result = null;
             // get type at match position
             if (match.Index < Sci.Text.Length) // TODO: find out rare cases of incorrect index reported
@@ -211,12 +219,15 @@
                 }
             }
             // check if the result matches the target
+
             if (result == null || (result.InFile == null && result.Type == null)) return false;
             if (matchMember)
             {
                 if (result.Member == null) return false;
-                return result.InFile.BasePath == target.InFile.BasePath && result.InFile.FileName == target.InFile.FileName
-                    && result.Member.LineFrom == target.Member.LineFrom && result.Member.Name == target.Member.Name;
+
+                var resultInFile = result.InFile ?? result.Member.InFile;
+                return resultInFile.BasePath == targetInFile.BasePath && resultInFile.FileName == targetInFile.FileName
+                    /*&& result.Member.LineFrom == target.Member.LineFrom*/ && result.Member.Name == target.Member.Name;
             }