diff --git a/twander.py b/twander.py index 7233e02..b4b11ee 100755 --- a/twander.py +++ b/twander.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "twander" -RCSID = "$Id: twander.py,v 3.154 2005/01/08 02:08:02 tundra Exp $" +RCSID = "$Id: twander.py,v 3.155 2005/01/08 07:13:42 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -270,6 +270,7 @@ # Defaults ##### +AFTERCLEAR = TRUE # Clear all selections following REFRESHAFTER AFTERWAIT = 1 # Seconds to wait before REFRESHAFTER AUTOREFRESH = TRUE # Automatically refresh the directory display? CMDSHELL = "" # No CMDSHELL processing @@ -3287,9 +3288,13 @@ # Do a display refresh if the user wanted it # Wait a while to give the command a chance to complete + # Then clear any selections and move cursor to the top item if do_refresh_after: time.sleep(AFTERWAIT) + if AFTERCLEAR: + KeySelNone(None) + KeySelTop(None) RefreshDirList() # End of 'ExecuteCommand() @@ -4534,7 +4539,8 @@ # Options (and their default values) which can be set in the configuration file -UI.OptionsBoolean = {"AUTOREFRESH":AUTOREFRESH, +UI.OptionsBoolean = {"AFTERCLEAR":AFTERCLEAR, + "AUTOREFRESH":AUTOREFRESH, "FORCEUNIXPATH":FORCEUNIXPATH, "NODETAILS":NODETAILS, "NONAVIGATE":NONAVIGATE, "SORTREVERSE":SORTREVERSE,