mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-23 17:14:55 +00: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