# File ../lib/fox/undolist.rb, line 132def add(command, doit=false)
# Cut redo list
cut
# No command given?returntrueif (command == nil)
# Add it to the end of the undo list
@undolist.push(command)
# Execute it right now?
command.redo if doit
# Update size
@size += command.size # measured after redo# Update the mark distance
@marker = @marker + 1 if (@marker != nil)
# Donereturntrueend