From de8116b1cf75b2f25ca44bebc7e988f8209e65f9 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 4 Nov 2013 10:38:16 +0900 Subject: [PATCH] Fix error on Linux with Ruby 1.8 --- fzf | 4 +++- fzf.gemspec | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fzf b/fzf index c915a72..091d1ad 100755 --- a/fzf +++ b/fzf @@ -10,7 +10,7 @@ # URL: https://github.com/junegunn/fzf # Author: Junegunn Choi # License: MIT -# Last update: November 2, 2013 +# Last update: November 4, 2013 # # Copyright (c) 2013 Junegunn Choi # @@ -454,6 +454,8 @@ searcher = Thread.new { next if !new_search && !((vcursor-1)..(vcursor+1)).include?(idx) line, b, e = convert_item item + b ||= 0 + e ||= 0 row = cursor_y - idx - 2 chosen = idx == vcursor diff --git a/fzf.gemspec b/fzf.gemspec index fa132db..daa2067 100644 --- a/fzf.gemspec +++ b/fzf.gemspec @@ -1,7 +1,7 @@ # coding: utf-8 Gem::Specification.new do |spec| spec.name = 'fzf' - spec.version = '0.2.0' + spec.version = '0.2.1' spec.authors = ['Junegunn Choi'] spec.email = ['junegunn.c@gmail.com'] spec.description = %q{Fuzzy finder for your shell}