From 05118cc440979f40a34bd64e8aef072cf2d627ac Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 26 Jun 2014 15:35:04 +0900 Subject: [PATCH] Minor corrections - Suppress warning message on Ruby 1.8.5 - Remove unnecessary code --- fzf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fzf b/fzf index 19a83bf..781df68 100644 --- a/fzf +++ b/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