Permalink
Browse files

fix bond completion for 1.9

  • Loading branch information...
1 parent e15a610 commit b4922ab74792252ed650272ad207da7e614e0366 @cldwalker committed Aug 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 .bondrc
View
@@ -3,7 +3,7 @@ complete(:on=>/(?:(?:[a-zA-Z]\w*):)+(\w+)?$/, :search=>false, :action=>:alias_co
recomplete(:name=>:constants, :anywhere=>'([A-Z][^. \(]*)::([^: .]*)') {|e|
receiver = e.matched[2]
candidates = eval("#{receiver}.constants") || []
- normal_search(e.matched[3], candidates).map {|e| receiver + "::" + e}
+ normal_search(e.matched[3], candidates).map {|e| "#{receiver}::#{e}" }
}
def alias_constants(input)

0 comments on commit b4922ab

Please sign in to comment.