mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-04 03:48:07 +02:00
🎨 alternative syntax
This commit is contained in:
parent
7ae106d4df
commit
107503c903
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user