public
Description: quick look up the Ruby reference manual from Vim.
Homepage: http://deadbeaf.org/
Clone URL: git://github.com/mootoh/refe2-vim.git
refe2-vim / bitclust.patch
100644 28 lines (23 sloc) 0.932 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff -r -u bitclust.orig/bin/refe.rb bitclust/bin/refe.rb
--- bitclust.orig/bin/refe.rb 2007-12-25 20:49:13.000000000 +0900
+++ bitclust/bin/refe.rb 2008-06-15 11:52:02.000000000 +0900
@@ -11,7 +11,7 @@
 end
 
 def _main
- refe = BitClust::Searcher.new
+ refe = BitClust::Searcher.new File.basename($0, '.*')
   refe.parse ARGV
   refe.exec nil, ARGV
 rescue OptionParser::ParseError => err
diff -r -u bitclust.orig/lib/bitclust/searcher.rb bitclust/lib/bitclust/searcher.rb
--- bitclust.orig/lib/bitclust/searcher.rb 2007-12-25 20:49:14.000000000 +0900
+++ bitclust/lib/bitclust/searcher.rb 2008-06-13 13:31:34.000000000 +0900
@@ -22,8 +22,8 @@
 
     include NameUtils
 
- def initialize
- cmd = File.basename($0, '.*')
+ def initialize(cmd)
+ #cmd = File.basename($0, '.*')
       @dblocation = nil
       @name = (/\Abitclust/ =~ cmd ? 'bitclust search' : 'refe')
       @describe_all = false