mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
wip: refactoring tui
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user