mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
support user configuring mouse events to be enabled
This commit is contained in:
parent
43758cbb5f
commit
a5d27764cd
|
|
@ -234,6 +234,7 @@ func GetDefaultConfig() []byte {
|
|||
## stuff relating to the UI
|
||||
scrollHeight: 2
|
||||
scrollPastBottom: true
|
||||
mouseEvents: false # will default to true when the feature is complete
|
||||
theme:
|
||||
activeBorderColor:
|
||||
- white
|
||||
|
|
|
|||
|
|
@ -550,7 +550,9 @@ func (gui *Gui) Run() error {
|
|||
}
|
||||
defer g.Close()
|
||||
|
||||
// g.Mouse = true // disabling until this feature is ready
|
||||
if gui.Config.GetUserConfig().GetBool("gui.mouseEvents") {
|
||||
g.Mouse = true
|
||||
}
|
||||
|
||||
gui.g = g // TODO: always use gui.g rather than passing g around everywhere
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue