From 271b0c837b7c1f90735e704f093835fc70a8900e Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 18 May 2023 08:54:19 -0700 Subject: [PATCH] Added a conditional to display a message only if input is not empty. --- aider/coder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/coder.py b/aider/coder.py index 05c2a4a64..e62582b84 100755 --- a/aider/coder.py +++ b/aider/coder.py @@ -222,7 +222,8 @@ class Coder: ] 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 if not inp: