diff --git a/twander.py b/twander.py index 02ed941..df83b37 100755 --- a/twander.py +++ b/twander.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "twander" -RCSID = "$Id: twander.py,v 3.144 2004/03/11 08:17:28 tundra Exp $" +RCSID = "$Id: twander.py,v 3.145 2004/03/11 09:34:44 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -3195,10 +3195,16 @@ # In most cases, we want to save the command with all the # variables (Built-In, Environment, User-Defined) resolved (dereferenced). # However, sometimes (e.g. manual command entry via KeyRunCommand()) we - # want to save the *unresolved* version. + # want to save the *unresolved* version. We also preserve the REFRESHAFTER + # indicator for all commands - manual or from the config file. This provides + # consistency in the history regardless of the soure of the command. if SaveUnresolved: savecmd = cmd + + elif do_refresh_after: + savecmd = REFRESHAFTER + newcmd + else: savecmd = newcmd