Skip to content

Commit

Permalink
Add TODO and shorten screen.Size assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
slarwise committed Aug 15, 2024
1 parent 81b289e commit 131eb43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ func main() {
}
}
defer quit()
width, height := screen.Size()
state.Width = width
state.Height = height
state.Width, state.Height = screen.Size()
drawPrompt(state)
drawLoadingScreen(state)
screen.Show()
Expand All @@ -108,6 +106,7 @@ func main() {
state.ViewStart = 0
}
case *tcell.EventKey:
// TODO: Add ability to switch between key-value vault mounts
switch ev.Key() {
case tcell.KeyEscape, tcell.KeyCtrlC:
return
Expand Down

0 comments on commit 131eb43

Please sign in to comment.