From b8aa2d2c32e791c5d9dc97443f0c7e108b52a34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vlastimil=20Ov=C4=8D=C3=A1=C4=8D=C3=ADk?= Date: Fri, 1 Oct 2021 16:59:02 +0200 Subject: Minor refactoring tcell library from tui.go to tcell.go To prevent including tcell library in non-windows builds. --- src/tui/tui.go | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'src/tui/tui.go') diff --git a/src/tui/tui.go b/src/tui/tui.go index 12359c62..eb09da40 100644 --- a/src/tui/tui.go +++ b/src/tui/tui.go @@ -5,8 +5,6 @@ import ( "os" "strconv" "time" - - "github.com/gdamore/tcell" ) // Types of user action @@ -399,22 +397,20 @@ type Window interface { } type FullscreenRenderer struct { - theme *ColorTheme - mouse bool - forceBlack bool - prevDownTime time.Time - prevMouseButton tcell.ButtonMask - clickY []int + theme *ColorTheme + mouse bool + forceBlack bool + prevDownTime time.Time + clickY []int } func NewFullscreenRenderer(theme *ColorTheme, forceBlack bool, mouse bool) Renderer { r := &FullscreenRenderer{ - theme: theme, - mouse: mouse, - forceBlack: forceBlack, - prevDownTime: time.Unix(0, 0), - prevMouseButton: tcell.ButtonNone, - clickY: []int{}} + theme: theme, + mouse: mouse, + forceBlack: forceBlack, + prevDownTime: time.Unix(0, 0), + clickY: []int{}} return r } -- cgit v1.2.3