Skip to content

Commit

Permalink
WindowWidth -> Width
Browse files Browse the repository at this point in the history
  • Loading branch information
koki-develop committed Apr 12, 2023
1 parent bb57c9b commit 6548531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion model.go
Expand Up @@ -164,7 +164,7 @@ func (m *model) inputView() string {
ItemsCount: m.items.Len(),
MatchesCount: len(m.matches),
SelectedCount: len(m.choices),
WindowWidth: m.mainViewWidth,
Width: m.mainViewWidth,
Limit: m.option.limit,
NoLimit: m.option.noLimit,
})
Expand Down
4 changes: 2 additions & 2 deletions option.go
Expand Up @@ -48,7 +48,7 @@ var defaultOption = option{
_, _ = v.WriteString(") ")
}

borderw := meta.WindowWidth - v.Len()
borderw := meta.Width - v.Len()
if borderw < 0 {
borderw = 0
}
Expand All @@ -64,7 +64,7 @@ type CountViewMeta struct {
ItemsCount int
MatchesCount int
SelectedCount int
WindowWidth int
Width int
Limit int
NoLimit bool
}
Expand Down

0 comments on commit 6548531

Please sign in to comment.