resend recent msg

This commit is contained in:
Paul Gauthier 2024-04-27 14:40:44 -07:00
parent 640d321b3e
commit 6e5e195ea8

View file

@ -281,7 +281,8 @@ class GUI:
if "input_history" not in self.state.keys:
input_history = list(self.coder.io.get_input_history())
seen = set()
self.state.input_history = [x for x in input_history if not (x in seen or seen.add(x))]
input_history = [x for x in input_history if not (x in seen or seen.add(x))]
self.state.input_history = input_history
def button(self, args, **kwargs):
"Create a button, disabled if prompt pending"