1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-13 20:04:25 +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 9fe7e0d63d
commit ae0f750770

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
}