on main help sign in
fix(tui): completions: don't export variable
commit849572d4d0b50f8dee0d75ef5a3198d0b7119606 authorAyman Bagabas <ayman.bagabas@gmail.com> dateWed 16 Jul 2025, 09:40 (1 year ago) parent8eb20fa
1 file changed+2−2
internal/tui/components/completions/completions.go+2−2
internal/tui/components/completions/completions.go+2−2
@@ -56,7 +56,7 @@ type completionsCmp struct {
5656 query string // The current filter query
5757}
5858
59−const MaxCompletionsWidth = 80 // Maximum width for the completions popup
59+const maxCompletionsWidth = 80 // Maximum width for the completions popup
6060
6161func New() Completions {
6262 completionsKeyMap := DefaultKeyMap()
@@ -96,7 +96,7 @@ func (c *completionsCmp) Init() tea.Cmd {
9696func (c *completionsCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
9797 switch msg := msg.(type) {
9898 case tea.WindowSizeMsg:
99− c.width = min(msg.Width-c.x, MaxCompletionsWidth)
99+ c.width = min(msg.Width-c.x, maxCompletionsWidth)
100100 c.height = min(msg.Height-c.y, 15)
101101 return c, nil
102102 case tea.KeyPressMsg: