Skip to content

Commit

Permalink
add window resize handling (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Aug 27, 2023
1 parent 7650556 commit 850a10a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/cmd/greeting/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
var inputCmd tea.Cmd

switch msg := msg.(type) {
case tea.WindowSizeMsg:
m.window.UpdateSize()
case tea.KeyMsg:
switch msg.String() {
case "ctrl+c", "q":
Expand Down

0 comments on commit 850a10a

Please sign in to comment.