summaryrefslogtreecommitdiff
path: root/src/tui/tui.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-06-17 00:07:27 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-06-17 00:11:57 +0900
commite0ddb97ab49b206ab350618438627b93b5c0c68f (patch)
tree03e0b16e15cac1c7f655bc1af76138b8043bda91 /src/tui/tui.go
parentb8c01af0fc5c8bbe674b7057ca2bf2caa0a2d2c4 (diff)
downloadfzf-e0ddb97ab49b206ab350618438627b93b5c0c68f.tar.gz
Improved --sync behavior
When --sync is provided, fzf will not render the interface until the initial filtering and associated actions (bound to any of 'start', 'load', or 'result') are complete.
Diffstat (limited to 'src/tui/tui.go')
-rw-r--r--src/tui/tui.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/tui/tui.go b/src/tui/tui.go
index 96a72651..f3e58f41 100644
--- a/src/tui/tui.go
+++ b/src/tui/tui.go
@@ -334,15 +334,6 @@ type Event struct {
MouseEvent *MouseEvent
}
-func (e Event) Is(types ...EventType) bool {
- for _, t := range types {
- if e.Type == t {
- return true
- }
- }
- return false
-}
-
type MouseEvent struct {
Y int
X int