diff options
Diffstat (limited to 'ui/syntax/syntaxedit.go')
-rw-r--r-- | ui/syntax/syntaxedit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/syntax/syntaxedit.go b/ui/syntax/syntaxedit.go index 18b51436..e52f60a8 100644 --- a/ui/syntax/syntaxedit.go +++ b/ui/syntax/syntaxedit.go @@ -477,10 +477,10 @@ func NewSyntaxEdit(parent walk.Container) (*SyntaxEdit, error) { se.GraphicsEffects().Add(walk.InteractionEffect) se.GraphicsEffects().Add(walk.FocusEffect) se.MustRegisterProperty("Text", walk.NewProperty( - func() interface{} { + func() any { return se.Text() }, - func(v interface{}) error { + func(v any) error { if s, ok := v.(string); ok { return se.SetText(s) } |