Skip to content

Commit

Permalink
ensure command bar is not open
Browse files Browse the repository at this point in the history
  • Loading branch information
mistakenelf committed Sep 26, 2021
1 parent 1a2529a commit 250c61f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ui/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {

case tea.KeyMsg:
// If gg is pressed.
if msg.String() == "g" && m.previousKey.String() == "g" {
if msg.String() == "g" && m.previousKey.String() == "g" && !m.showCommandBar {
// If the command bar is not shown and the primary pane is active,
// reset the previous key, go to the top of the dirtree and pane.
if !m.showCommandBar && m.primaryPane.GetIsActive() {
Expand Down

0 comments on commit 250c61f

Please sign in to comment.