Added a conditional to display a message only if input is not empty.

This commit is contained in:
Paul Gauthier 2023-05-18 08:54:19 -07:00
parent 8913eb5066
commit 271b0c837b

View file

@ -222,7 +222,8 @@ class Coder:
] ]
self.cur_messages = [] self.cur_messages = []
self.io.tool("Use up-arrow to retry previous command:", inp) if inp.strip():
self.io.tool("Use up-arrow to retry previous command:", inp)
return return
if not inp: if not inp: