Skip to content

Commit

Permalink
completion tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cldwalker committed Jul 28, 2009
1 parent 1f171fc commit 59a3358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bond/actions.rb
Expand Up @@ -11,7 +11,7 @@ module Actions
def current_eval(string)
Missions::ObjectMission.current_eval(string)
rescue Exception
nil
[]
end

# Completes backtick and Kernel#system with shell commands available in ENV['PATH']
Expand Down
2 changes: 1 addition & 1 deletion lib/bond/completion.rb
Expand Up @@ -21,7 +21,7 @@
global_variables.grep(/^#{Regexp.escape(e.matched[1])}/)
}
# Completes files
Bond.complete(:on=>/\s+["']([^'"]*)$/, :search=>false, :action=>:quoted_files, :place=>:last)
Bond.complete(:on=>/[\s(]["']([^'"]*)$/, :search=>false, :action=>:quoted_files, :place=>:last)
# Completes any object's methods
Bond.complete(:object=>"Object", :place=>:last)
# Completes method completion anywhere in the line
Expand Down

0 comments on commit 59a3358

Please sign in to comment.