1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-04 03:48:07 +02:00

🎨 alternative syntax

This commit is contained in:
Davyd McColl 2021-06-09 20:47:29 +02:00 committed by Jesse Duffield
parent 7ae106d4df
commit 107503c903

View File

@ -31,13 +31,13 @@ func (gui *Gui) handleQuitWithoutChangingDirectory() error {
func (gui *Gui) toggleWhitespaceInDiffView() error {
gui.State.IgnoreWhitespaceInDiffView = !gui.State.IgnoreWhitespaceInDiffView
var toastMessage string
toastMessage := gui.Tr.ShowingWhitespaceInDiffView
if gui.State.IgnoreWhitespaceInDiffView {
toastMessage = gui.Tr.IgnoringWhitespaceInDiffView
} else {
toastMessage = gui.Tr.ShowingWhitespaceInDiffView
}
gui.raiseToast(toastMessage)
return gui.refreshFilesAndSubmodules()
}