Minor corrections

- Suppress warning message on Ruby 1.8.5
- Remove unnecessary code
This commit is contained in:
Junegunn Choi 2014-06-26 15:35:04 +09:00
parent e392da20e8
commit 05118cc440

4
fzf
View File

@ -72,7 +72,7 @@ class FZF
def set name, value = nil def set name, value = nil
sync do sync do
instance_variable_set name, instance_variable_set name,
(block_given? ? yield(instance_variable_get name) : value) (block_given? ? yield(instance_variable_get(name)) : value)
end end
end end
@ -172,7 +172,7 @@ class FZF
@query ||= '' @query ||= ''
@matches = [] @matches = []
@count = 0 @count = 0
@xcur = get(:@query).length @xcur = @query.length
@ycur = 0 @ycur = 0
@yoff = 0 @yoff = 0
@dirty = Set.new @dirty = Set.new