Commits

abudden  committed 050b67c

Fix for issue with method of checking for existence of tag file.

  • Participants
  • Parent commits 8623ea7

Comments (0)

Files changed (2)

File doc/TagHighlight.txt

 ==============================================================================
 7. TagHighlight History                *TagHighlight-history*               {{{1
 
-2.0.22: UNRELEASED         : Website link update.  Comments on troubleshooting
-                             issues with UpdateTypesFileOnly.
+2.0.22: 11th August 2011   : Website link update.  Comments on troubleshooting
+                             issues with UpdateTypesFileOnly.  Fix for check
+                             for existing of tag file (not looking in the
+                             correct directory).
 
 2.0.21: 10th August 2011   : Additional debug.
 

File plugin/TagHighlight/module/worker.py

     Debug("Version:" + repr(config['version']), "Information")
     Debug("Options:" + repr(options), "Information")
 
-    if config['use_existing_tagfile'] and not os.path.exists(config['ctags_file']):
-        Debug("Cannot use existing tagfile as it doesn't exist (checking for " + config['ctags_file'] + ")", "Information")
+    tag_file_absolute = os.path.join(config['ctags_file_dir'], config['ctags_file'])
+    if config['use_existing_tagfile'] and not os.path.exists(tag_file_absolute):
+        Debug("Cannot use existing tagfile as it doesn't exist (checking for " + tag_file_absolute + ")", "Information")
         config['use_existing_tagfile'] = False
 
     LoadLanguages()