mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-05 08:02:14 +00:00
Fix error with empty list and release 0.9.1-dev
This commit is contained in:
parent
0b5fa56444
commit
62acb9adc4
4
install
4
install
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
version=0.9.0
|
version=0.9.1-dev
|
||||||
|
|
||||||
cd $(dirname $BASH_SOURCE)
|
cd $(dirname $BASH_SOURCE)
|
||||||
fzf_base=$(pwd)
|
fzf_base=$(pwd)
|
||||||
@ -33,7 +33,7 @@ symlink() {
|
|||||||
|
|
||||||
download() {
|
download() {
|
||||||
echo "Downloading bin/fzf ..."
|
echo "Downloading bin/fzf ..."
|
||||||
if [ -x "$fzf_base"/bin/fzf ]; then
|
if [[ ! $1 =~ dev && -x "$fzf_base"/bin/fzf ]]; then
|
||||||
echo " - Already exists"
|
echo " - Already exists"
|
||||||
check_binary && return
|
check_binary && return
|
||||||
elif [ -x "$fzf_base"/bin/$1 ]; then
|
elif [ -x "$fzf_base"/bin/$1 ]; then
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// Current version
|
// Current version
|
||||||
const Version = "0.9.0"
|
const Version = "0.9.1-dev"
|
||||||
|
|
||||||
// fzf events
|
// fzf events
|
||||||
const (
|
const (
|
||||||
|
@ -134,7 +134,8 @@ func (t *Terminal) output() {
|
|||||||
fmt.Println(string(t.input))
|
fmt.Println(string(t.input))
|
||||||
}
|
}
|
||||||
if len(t.selected) == 0 {
|
if len(t.selected) == 0 {
|
||||||
if t.merger.Length() > t.cy {
|
cnt := t.merger.Length()
|
||||||
|
if cnt > 0 && cnt > t.cy {
|
||||||
fmt.Println(t.merger.Get(t.listIndex(t.cy)).AsString())
|
fmt.Println(t.merger.Get(t.listIndex(t.cy)).AsString())
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user