Fix long item display

This commit is contained in:
Junegunn Choi 2013-11-02 20:58:23 +09:00
parent 94f0c3d22b
commit c3c94ea889
2 changed files with 2 additions and 2 deletions

2
fzf
View File

@ -439,7 +439,7 @@ searcher = Thread.new {
if width(line) > maxc if width(line) > maxc
ewidth = width(line[0...e]) ewidth = width(line[0...e])
# Stri.. # Stri..
if ewidth <= maxc if ewidth <= maxc - 2
line = line[0...-1] while width(line) > maxc - 2 line = line[0...-1] while width(line) > maxc - 2
line << '..' line << '..'
# ..ring # ..ring

View File

@ -1,7 +1,7 @@
# coding: utf-8 # coding: utf-8
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = 'fzf' spec.name = 'fzf'
spec.version = '0.1.3' spec.version = '0.1.4'
spec.authors = ['Junegunn Choi'] spec.authors = ['Junegunn Choi']
spec.email = ['junegunn.c@gmail.com'] spec.email = ['junegunn.c@gmail.com']
spec.description = %q{Fuzzy finder for your shell} spec.description = %q{Fuzzy finder for your shell}