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