diff --git a/twander.py b/twander.py index 568cfef..3f4363a 100755 --- a/twander.py +++ b/twander.py @@ -1,10 +1,10 @@ -#!/usr/local/bin/python +#!/usr/bin/env python # twander - Wander around the file system # Copyright (c) 2002 TundraWare Inc. All Rights Reserved. PROGNAME = "twander" -RCSID = "$Id: twander.py,v 1.46 2002/11/13 00:41:51 tundra Exp $" +RCSID = "$Id: twander.py,v 1.47 2002/11/13 09:46:26 tundra Exp $" VERSION = RCSID.split()[2] @@ -547,15 +547,24 @@ def RefreshDirList(*args): + + # Save current selection and active entry number = 0 + active=UI.DirList.index(ACTIVE) index = UI.DirList.curselection() if index: number = UI.DirList.index(index) LoadDirList(ROOTDIR, save=FALSE) + + + # Restore current selection and active entry + UI.DirList.select_set(number) UI.DirList.see(number) + UI.DirList.activate(active) + # End of 'RefreshDirList()