fxri 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/fxri.gemspec +1 -1
- data/lib/fxirb.rb +16 -0
- metadata +1 -1
data/fxri.gemspec
CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
|
|
4
4
|
spec = Gem::Specification.new do |s|
|
5
5
|
s.name = "fxri"
|
6
6
|
s.add_dependency('fxruby', '>= 1.2.0')
|
7
|
-
s.version = "0.3.
|
7
|
+
s.version = "0.3.2"
|
8
8
|
s.date = "2005-04-16"
|
9
9
|
s.summary = "Graphical interface to the RI documentation, with search engine."
|
10
10
|
s.require_paths = ["lib"]
|
data/lib/fxirb.rb
CHANGED
@@ -292,6 +292,22 @@ class FXIrb < FXText
|
|
292
292
|
end
|
293
293
|
end
|
294
294
|
|
295
|
+
def dedent
|
296
|
+
str = getline
|
297
|
+
@anchor -= 2
|
298
|
+
rmline
|
299
|
+
appendText(str)
|
300
|
+
setCursorPos(getLength)
|
301
|
+
end
|
302
|
+
|
303
|
+
def history(dir)
|
304
|
+
str = (dir == :prev) ? @im.prevCmd.chomp : @im.nextCmd.chomp
|
305
|
+
if str != ""
|
306
|
+
removeText(@anchor, getLength-@anchor)
|
307
|
+
write(str)
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
295
311
|
def getline
|
296
312
|
extractText(@anchor, getLength-@anchor)
|
297
313
|
end
|