Print [ERROR] on info line when the default command failed

With zero result.

Related: https://github.com/junegunn/fzf.vim/issues/22#issuecomment-311869805
This commit is contained in:
Junegunn Choi
2017-07-01 01:13:15 +09:00
parent 3fc795340d
commit 07ef2b051c
4 changed files with 25 additions and 11 deletions

View File

@@ -228,7 +228,7 @@ func Run(opts *Options, revision string) {
case EvtReadNew, EvtReadFin:
reading = reading && evt == EvtReadNew
snapshot, count := chunkList.Snapshot()
terminal.UpdateCount(count, !reading)
terminal.UpdateCount(count, !reading, value.(bool))
matcher.Reset(snapshot, terminal.Input(), false, !reading, sort)
case EvtSearchNew: