diff options
author | Davyd McColl <davydm@gmail.com> | 2021-05-28 12:02:19 +0200 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-07-01 17:13:13 +1000 |
commit | a9f04d3925bff4ec487a8c622ce84c79ef64ab87 (patch) | |
tree | 58f80bb76136d06e5c5d189f89fd4174c3099d58 /pkg/gui/staging_panel.go | |
parent | 83834a2c2e50922d58b052b116d50a9fc3903e84 (diff) |
:sparkles: facilitate toggling whitespace in the diff view with a hotkey (c-w by default)
Diffstat (limited to 'pkg/gui/staging_panel.go')
-rw-r--r-- | pkg/gui/staging_panel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/staging_panel.go b/pkg/gui/staging_panel.go index c016586da..916361fc1 100644 --- a/pkg/gui/staging_panel.go +++ b/pkg/gui/staging_panel.go @@ -34,8 +34,8 @@ func (gui *Gui) refreshStagingPanel(forceSecondaryFocused bool, selectedLineIdx } // note for custom diffs, we'll need to send a flag here saying not to use the custom diff - diff := gui.GitCommand.WorktreeFileDiff(file, true, secondaryFocused) - secondaryDiff := gui.GitCommand.WorktreeFileDiff(file, true, !secondaryFocused) + diff := gui.GitCommand.WorktreeFileDiff(file, true, secondaryFocused, gui.State.IgnoreWhitespaceInDiffView) + secondaryDiff := gui.GitCommand.WorktreeFileDiff(file, true, !secondaryFocused, gui.State.IgnoreWhitespaceInDiffView) // if we have e.g. a deleted file with nothing else to the diff will have only // 4-5 lines in which case we'll swap panels |