Skip to content

Commit

Permalink
Fix “Open Require” (⇧⌘D) for relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sorbits committed Aug 4, 2013
1 parent d683ad3 commit 5cc7a94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Commands/Open Require.tmCommand
Expand Up @@ -12,6 +12,8 @@ require "#{ENV['TM_SUPPORT_PATH']}/lib/textmate.rb"
REQUIRE_RE = /^\s*(?:require|load)\s*(['"])([^'"#]+?)(?:\.rb)?\1[ \t]*$/ REQUIRE_RE = /^\s*(?:require|load)\s*(['"])([^'"#]+?)(?:\.rb)?\1[ \t]*$/
Dir.chdir(ENV['TM_DIRECTORY']) if ENV.has_key?('TM_DIRECTORY')
gems_installed = begin gems_installed = begin
require 'rubygems' require 'rubygems'
true true
Expand Down

0 comments on commit 5cc7a94

Please sign in to comment.