fixed warning in screen.go
This commit is contained in:
parent
727d8b28b7
commit
5a460a9e40
@ -1,7 +1,6 @@
|
|||||||
package tui
|
package tui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"git.tordarus.net/Tordarus/adverr"
|
"git.tordarus.net/Tordarus/adverr"
|
||||||
@ -107,7 +106,7 @@ func (s *Screen) eventloop() {
|
|||||||
case *tcell.EventMouse:
|
case *tcell.EventMouse:
|
||||||
s.onMouseClicked(convertMouseEvent(event))
|
s.onMouseClicked(convertMouseEvent(event))
|
||||||
default:
|
default:
|
||||||
s.StopWithError(errors.New(fmt.Sprintf("%#v", event)))
|
s.StopWithError(fmt.Errorf("%#v", event))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user