diff --git a/twander.py b/twander.py index 6ece9dc..7cd1616 100755 --- a/twander.py +++ b/twander.py @@ -4,7 +4,7 @@ PROGNAME = "twander" -RCSID = "$Id: twander.py,v 1.67 2002/11/20 23:55:16 tundra Exp $" +RCSID = "$Id: twander.py,v 1.68 2002/11/21 01:05:08 tundra Exp $" VERSION = RCSID.split()[2] @@ -827,6 +827,11 @@ active = UI.DirList.index(ACTIVE) selected = UI.DirList.get(active) + # Save current scroll positions + + xs = UI.hSB.get() + ys = UI.vSB.get() + # Get new directory listing newlist = BuildDirList(UI.CurrentDir) @@ -845,6 +850,12 @@ # Restore active item SetSelection(active) + # Restore scroll positions + + UI.DirList.xview(MOVETO, xs[0]) + UI.DirList.yview(MOVETO, ys[0]) + + # End of 'RefreshDirList()