diff options
| author | Vlastimil Ovčáčík <vovcacik@github.ovcacik.org> | 2021-10-01 16:59:02 +0200 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2021-10-03 01:39:30 +0900 |
| commit | b8aa2d2c32e791c5d9dc97443f0c7e108b52a34c (patch) | |
| tree | 4541950eed319bd8a59d8877615284729d608a1f /src/tui/tui.go | |
| parent | 0ff885461b0474b58f08d7c3f48992a0e1eafee0 (diff) | |
| download | fzf-b8aa2d2c32e791c5d9dc97443f0c7e108b52a34c.tar.gz | |
Minor refactoring tcell library from tui.go to tcell.go
To prevent including tcell library in non-windows builds.
Diffstat (limited to 'src/tui/tui.go')
| -rw-r--r-- | src/tui/tui.go | 24 |
1 files changed, 10 insertions, 14 deletions
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 } |
