go fmt ui/*
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user