diff --git a/twander.py b/twander.py index e973b74..0112f8e 100755 --- a/twander.py +++ b/twander.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "twander" -RCSID = "$Id: twander.py,v 3.194 2005/02/11 00:45:54 tundra Exp $" +RCSID = "$Id: twander.py,v 3.195 2005/02/14 09:49:44 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -2445,13 +2445,16 @@ srtfld = dlvLETTER.upper() else: srtfld = Name2Key[SORTBYFIELD.lower()][2].upper() - - sepsort = "" + sepsort = "" + ttlfiles = str(self.DirList.size()) + else: srtfld = SORTBYFIELD.upper() srtsep = YesOrNo[SORTSEPARATE] sepsort = "%s %s" % (TTLSORTSEP, srtsep) + ttlfiles = str(self.DirList.size()-1) # We never count the ".." entry + # Limit width of current directory name display in case # user get's *really* deeply nested in a file system. @@ -2481,7 +2484,7 @@ mainwin.title("%s %s %s: %s %s %s %s %s %s %s %s%s %s %s" % (PROGNAME, VERSION, FULLNAME, CurrentDir, filter, hidedotfile, TTLFILES, - str(self.DirList.size()), TTLSIZE, FileLength(self.TotalSize), sortedby, sepsort, TTLAUTO, autostate)) + ttlfiles, TTLSIZE, FileLength(self.TotalSize), sortedby, sepsort, TTLAUTO, autostate)) # Make sure the titlebar gets updated mainwin.update_idletasks()