mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-04 23:40:48 +00:00
wip: refactoring tui
This commit is contained in:
parent
979bad3e64
commit
95d5e1f231
37 changed files with 1496 additions and 1801 deletions
|
|
@ -11,6 +11,7 @@ func CmdHandler(msg tea.Msg) tea.Cmd {
|
|||
}
|
||||
|
||||
func Clamp(v, low, high int) int {
|
||||
// Swap if needed to ensure low <= high
|
||||
if high < low {
|
||||
low, high = high, low
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue