Cleanup: use nil for empty slice

This commit is contained in:
Stefan Haller committed 2025-07-11 10:47:07 +02:00
1 parent b3ca944c9e
commit 9c5c459faa
1 file changed
+2 -2
+2 -2
View File
@@ -136,8 +136,8 @@ func (self *BaseContext) AddMouseKeybindingsFn(fn types.MouseKeybindingsFn) {
}
func (self *BaseContext) ClearAllBindingsFn() {
self.keybindingsFns = []types.KeybindingsFn{}
self.mouseKeybindingsFns = []types.MouseKeybindingsFn{}
self.keybindingsFns = nil
self.mouseKeybindingsFns = nil
}
func (self *BaseContext) AddOnClickFn(fn func() error) {