Permalink
Browse files

Reassign TM_DIRECTORY when processing the file so #relative# is calcu…

…lated properly.
  • Loading branch information...
1 parent 20fb9ad commit 53490e60df073836b55407a92810fdcdedc8f8d3 @bradchoate bradchoate committed Sep 19, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 Support/tminclude.rb
View
@@ -300,6 +300,7 @@ def process_persistent_includes_for_project
if doc.match(/#(tm|bb)include/)
if not doc.match(/#dont_update#/)
ENV['TM_FILEPATH'] = file
+ ENV['TM_DIRECTORY'] = File.dirname(file)
reset
newdoc = doc.dup
process_persistent_includes_for_string(newdoc)

0 comments on commit 53490e6

Please sign in to comment.