mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-22 21:05:09 +00:00
Minor corrections
- Suppress warning message on Ruby 1.8.5 - Remove unnecessary code
This commit is contained in:
parent
e392da20e8
commit
05118cc440
4
fzf
4
fzf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user