1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-19 21:28:28 +02:00

fix bug where you couldn't change tabs

This commit is contained in:
Jesse Duffield 2021-04-02 20:51:52 +11:00
parent 83a0fb65f6
commit 89cd96a2e6

View File

@ -438,7 +438,7 @@ func (gui *Gui) onViewTabClick(viewName string, tabIndex int) error {
func (gui *Gui) handleNextTab() error {
v := gui.g.CurrentView()
if v != nil {
if v == nil {
return nil
}
@ -450,7 +450,7 @@ func (gui *Gui) handleNextTab() error {
func (gui *Gui) handlePrevTab() error {
v := gui.g.CurrentView()
if v != nil {
if v == nil {
return nil
}