1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-03 13:21:56 +02:00

support user configuring mouse events to be enabled

This commit is contained in:
Jesse Duffield 2019-03-03 16:15:20 +11:00
parent 43758cbb5f
commit a5d27764cd
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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