mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
Don't barf if -underlinefg is not available; don't lose whitespace in MOON message.
This commit is contained in:
@@ -3326,7 +3326,9 @@ proc EditableEnter { w } {
|
|||||||
set c [$w tag cget $ctag -foreground]
|
set c [$w tag cget $ctag -foreground]
|
||||||
}
|
}
|
||||||
if {"$c" != ""} {
|
if {"$c" != ""} {
|
||||||
$w tag configure $tag -underline 1 -underlinefg $c
|
$w tag configure $tag -underline 1
|
||||||
|
# underlinefg not supported on older versions of Tk
|
||||||
|
eval { $w tag configure $tag -underlinefg $c }
|
||||||
} else {
|
} else {
|
||||||
$w tag configure $tag -underline 1
|
$w tag configure $tag -underline 1
|
||||||
}
|
}
|
||||||
@@ -3633,7 +3635,9 @@ proc DoShadeSpecial { n r g b } {
|
|||||||
#***********************************************************************
|
#***********************************************************************
|
||||||
proc DoMoonSpecial { n stuff fntag day } {
|
proc DoMoonSpecial { n stuff fntag day } {
|
||||||
set msg ""
|
set msg ""
|
||||||
set num [scan $stuff "%d %d %d %s" phase junk1 junk2 msg]
|
# Yes, this is gross, but the odds of "\" appearing
|
||||||
|
# in the text associated with a MOON are small.
|
||||||
|
set num [scan $stuff {%d %d %d %[^\]} phase junk1 junk2 msg]
|
||||||
if {$num < 1} {
|
if {$num < 1} {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user