This commit is contained in:
Daisuke Maki 2017-01-09 19:07:17 +09:00
parent 825adb2768
commit 6d5a2065a2
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ func TestFuzzy(t *testing.T) {
ch := make(chan interface{}, 1)
l := line.NewRaw(uint64(i), v.input, false)
err := filter.Apply(ctx, []line.Line{l}, pipeline.ChanOutput(ch))
if !assert.NoError(t, err, `filter.Apply should succeeed`) {
if !assert.NoError(t, err, `filter.Apply should succeed`) {
return
}

View file

@ -45,7 +45,7 @@ func (i *Input) handleInputEvent(ctx context.Context, ev termbox.Event) error {
m := &i.mutex
// Smells like Esc or Alt. mod == nil checks for the presense
// Smells like Esc or Alt. mod == nil checks for the presence
// of a previous timer
m.Lock()
if ev.Ch == 0 && ev.Key == 27 && i.mod == nil {