Skip to content

Commit

Permalink
fix: fix focus function
Browse files Browse the repository at this point in the history
  • Loading branch information
elfgzp committed Nov 26, 2020
1 parent d8b4fb2 commit 563952e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ func (gui *Gui) FocusView(name string, canReturn bool) error {
currentView := gui.CurrentView()

if previousView != nil {
if canReturn && !currentView.CanNotReturn && (currentView == nil || (previousView.Name != currentView.Name)) {
if canReturn && !previousView.CanNotReturn && (currentView == nil || (previousView.Name != currentView.Name)) {
gui.pushPreviousView(previousView.Name)
}
if previousView.Name != name {
Expand Down

0 comments on commit 563952e

Please sign in to comment.