diff --git a/twander.py b/twander.py index 8fdff72..a800c15 100755 --- a/twander.py +++ b/twander.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "twander" -RCSID = "$Id: twander.py,v 3.220 2007/01/10 10:05:41 tundra Exp $" +RCSID = "$Id: twander.py,v 3.221 2007/01/10 23:07:42 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -2643,9 +2643,10 @@ symlinks = "F" if SYMEXPAND: - symlinks += "E" + sl = "E" if SYMRESOLV: - symlinks += "R" + sl = "R" + symlinks += sl symlinks = "%s %s" % (TTLSYMLINKS, symlinks) @@ -2909,8 +2910,17 @@ ##### def KeyToggle(event, option): - + global SYMEXPAND, SYMRESOLV + exec("global %s; %s = not %s" % (option, option, option)) + + # We may have just updated SYMRESOLV. Changing its state implies + # we want to see the link target (either expanded or resolved) so + # force symlink targets to be displayed one way or the other. + + if option=="SYMRESOLV": + SYMEXPAND = True + RefreshDirList(event) return 'break'