go fmt ui/*

This commit is contained in:
Luke I. Wilson
2021-03-11 22:25:19 -06:00
parent a6674fb918
commit a4e2dae43e
3 changed files with 9 additions and 9 deletions

View File

@ -152,7 +152,7 @@ func (c *TabContainer) FocusTab(idx int) {
if idx < 0 {
idx = 0
} else if idx >= len(c.children) {
idx = len(c.children)-1
idx = len(c.children) - 1
}
c.children[c.selected].Child.SetFocused(false) // Unfocus old tab

View File

@ -66,7 +66,7 @@ func (f *InputField) Delete(forward bool) {
lineRunes = lineRunes[:len(lineRunes)-1] // Shrink line length
f.Text = string(lineRunes) // Update line with new runes
f.SetCursorPos(f.cursorPos-1) // Move cursor back
f.SetCursorPos(f.cursorPos - 1) // Move cursor back
}
}
}