1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00

stop switching focus to commit files view while staging line by line

This commit is contained in:
Jesse Duffield 2020-03-28 10:22:58 +11:00
parent 906a49049e
commit d97c230747

View File

@ -83,7 +83,7 @@ func (gui *Gui) refreshCommits() error {
go func() {
gui.refreshCommitsWithLimit()
if gui.g.CurrentView() == gui.getCommitFilesView() || (gui.g.CurrentView() == gui.getMainView() || gui.State.MainContext == "patch-building") {
if gui.g.CurrentView() == gui.getCommitFilesView() || (gui.g.CurrentView() == gui.getMainView() && gui.State.MainContext == "patch-building") {
gui.refreshCommitFilesView()
}
wg.Done()