mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-25 18:55:28 -06:00
♻️ temporarily bypass ignore whitespace for diff view instead of turning the toggle off completely
This commit is contained in:
committed by
Jesse Duffield
parent
3dc3174d85
commit
35f1ccdb1b
@@ -1,15 +1,7 @@
|
||||
package gui
|
||||
|
||||
func (gui *Gui) toggleWhitespaceInDiffView() error {
|
||||
return gui.setIgnoreWhitespaceFlag(!gui.State.IgnoreWhitespaceInDiffView)
|
||||
}
|
||||
|
||||
func (gui *Gui) setIgnoreWhitespaceFlag(shouldIgnoreWhitespace bool) error {
|
||||
if gui.State.IgnoreWhitespaceInDiffView == shouldIgnoreWhitespace {
|
||||
return nil
|
||||
}
|
||||
|
||||
gui.State.IgnoreWhitespaceInDiffView = shouldIgnoreWhitespace
|
||||
gui.State.IgnoreWhitespaceInDiffView = !gui.State.IgnoreWhitespaceInDiffView
|
||||
|
||||
toastMessage := gui.Tr.ShowingWhitespaceInDiffView
|
||||
if gui.State.IgnoreWhitespaceInDiffView {
|
||||
|
||||
Reference in New Issue
Block a user