Fix #172 - Print empty line when fzf with expect finished by -1 or -0

This commit is contained in:
Junegunn Choi
2015-03-31 20:52:16 +09:00
parent 39d7177bd3
commit 84a7499ae3
2 changed files with 8 additions and 0 deletions

View File

@@ -216,6 +216,9 @@ func Run(options *Options) {
if opts.PrintQuery {
fmt.Println(opts.Query)
}
if len(opts.Expect) > 0 {
fmt.Println()
}
for i := 0; i < count; i++ {
fmt.Println(val.Get(i).AsString())
}