Use "catch" instead of "eval". What was I thinking??

This commit is contained in:
Dianne Skoll
2025-08-15 08:33:49 -04:00
parent e2d7796d4a
commit fb19ea6b7e

View File

@@ -3772,7 +3772,7 @@ proc EditableEnter { w } {
if {"$c" != ""} {
$w tag configure $tag -underline 1
# underlinefg not supported on older versions of Tk
eval { $w tag configure $tag -underlinefg $c }
catch { $w tag configure $tag -underlinefg $c }
} else {
$w tag configure $tag -underline 1
}