1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-17 00:18:05 +02:00

Add user config to enable line wrapping in the staging view

It is enabled by default, because I think it's often helpful, and rarely in the
way. I bet most user won't even notice.
This commit is contained in:
Stefan Haller
2024-12-02 22:17:09 +01:00
parent 2828fb94fb
commit 15288b7bf4
5 changed files with 19 additions and 3 deletions

View File

@ -65,7 +65,7 @@ func (self *PatchBuildingController) GetMouseKeybindings(opts types.KeybindingsO
func (self *PatchBuildingController) GetOnFocus() func(types.OnFocusOpts) {
return func(opts types.OnFocusOpts) {
// no need to change wrap on the secondary view because it can't be interacted with
self.c.Views().PatchBuilding.Wrap = false
self.c.Views().PatchBuilding.Wrap = self.c.UserConfig().Gui.WrapLinesInStagingView
self.c.Helpers().PatchBuilding.RefreshPatchBuildingPanel(opts)
}