Skip to content
Myr

Fix error with empty list and release 0.9.1-dev

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 0b5fa56 · Browse files · 3 files+5 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−4 removed

  • other:+5 added−4 removed

3 files+5 added−4 removed

modified:src/constants.go+1 added-1 removed
3 unmodified lines
4 "github.com/junegunn/fzf/src/util"5)67// Current version8const Version = "0.9.0"8const Version = "0.9.1-dev"910// fzf events11const (12 EvtReadNew util.EventType = iota
6 unmodified lines
modified:src/terminal.go+2 added-1 removed
132 unmodified lines
133 if t.printQuery {134 fmt.Println(string(t.input))135 }136 if len(t.selected) == 0 {137 if t.merger.Length() > t.cy {137 cnt := t.merger.Length()138 if cnt > 0 && cnt > t.cy {139 fmt.Println(t.merger.Get(t.listIndex(t.cy)).AsString())140 }141 } else {142 for ptr, orig := range t.selected {
485 unmodified lines
modified:install+2 added-2 removed
1#!/usr/bin/env bash23version=0.9.03version=0.9.1-dev45cd $(dirname $BASH_SOURCE)6fzf_base=$(pwd)7
24 unmodified lines
32}3334download() {35 echo "Downloading bin/fzf ..."36 if [ -x "$fzf_base"/bin/fzf ]; then36 if [[ ! $1 =~ dev && -x "$fzf_base"/bin/fzf ]]; then37 echo " - Already exists"38 check_binary && return39 elif [ -x "$fzf_base"/bin/$1 ]; then40 symlink $1
453 unmodified lines