aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui/borders.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ui/borders.go')
-rw-r--r--lib/ui/borders.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ui/borders.go b/lib/ui/borders.go
index 2c689886..92e29b06 100644
--- a/lib/ui/borders.go
+++ b/lib/ui/borders.go
@@ -76,8 +76,7 @@ func (bordered *Bordered) Draw(ctx *Context) {
}
func (bordered *Bordered) MouseEvent(localX int, localY int, event tcell.Event) {
- switch content := bordered.content.(type) {
- case Mouseable:
+ if content, ok := bordered.content.(Mouseable); ok {
content.MouseEvent(localX, localY, event)
}
}