m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 00:53:42 -05:00

Fix error on Linux with Ruby 1.8

This commit is contained in:
Junegunn Choi
2013-11-04 10:38:16 +09:00
parent 1460e0a10b
commit de8116b1cf
2 changed files with 4 additions and 2 deletions

4
fzf
View File

@@ -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