File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,9 @@ When the user enters an empty line in response to the prompt, ``Cmd`` does
9999**not ** ignore the input by default. Instead, it repeats the last non-empty
100100command entered.
101101
102- This behavior is implemented by :meth: `Cmd. emptyline `. Subclasses that do not
102+ This behavior is implemented by :meth: `emptyline `. Subclasses that do not
103103want empty input to repeat the previous command should override
104- :meth: `Cmd. emptyline ` to do nothing::
104+ :meth: `emptyline ` to do nothing::
105105
106106 def emptyline(self):
107107 pass
@@ -139,6 +139,8 @@ want empty input to repeat the previous command should override
139139 Method called on an input line when the command prefix is not recognized. If
140140 this method is not overridden, it prints an error message and returns.
141141
142+ Note that if :meth: `emptyline ` is not overridden, empty input may cause
143+ the previous command to be repeated and passed again to this method.
142144
143145.. method :: Cmd.completedefault(text, line, begidx, endidx)
144146
You can’t perform that action at this time.
0 commit comments