diff options
| author | Dax Raad <[email protected]> | 2025-05-30 20:47:56 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-05-30 20:48:36 -0400 |
| commit | f3da73553c45f17e04b1e77cb13eb0fca714d1bd (patch) | |
| tree | a24317a19e1ab2a89da50db669dc6894f15d00d1 /internal/tui/util | |
| parent | 9a26b3058ffc1023e5c7e54b6d571c903d15888e (diff) | |
| download | opencode-f3da73553c45f17e04b1e77cb13eb0fca714d1bd.tar.gz opencode-f3da73553c45f17e04b1e77cb13eb0fca714d1bd.zip | |
sync
Diffstat (limited to 'internal/tui/util')
| -rw-r--r-- | internal/tui/util/util.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/internal/tui/util/util.go b/internal/tui/util/util.go deleted file mode 100644 index 207382d1e..000000000 --- a/internal/tui/util/util.go +++ /dev/null @@ -1,18 +0,0 @@ -package util - -import ( - tea "github.com/charmbracelet/bubbletea" -) - -func CmdHandler(msg tea.Msg) tea.Cmd { - return func() tea.Msg { - return msg - } -} - -func Clamp(v, low, high int) int { - if high < low { - low, high = high, low - } - return min(high, max(low, v)) -} |
