Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kharvd committed May 8, 2023
1 parent a3ff0fc commit 46247d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gptcli/cli.py
Expand Up @@ -10,6 +10,7 @@

from rich.text import Text
from gptcli.session import (
ALL_COMMANDS,
COMMAND_CLEAR,
COMMAND_QUIT,
COMMAND_RERUN,
Expand Down Expand Up @@ -130,7 +131,7 @@ def parse_args(input: str) -> Tuple[str, Dict[str, Any]]:

class CLIFileHistory(FileHistory):
def append_string(self, string: str) -> None:
if string in [*COMMAND_CLEAR, *COMMAND_QUIT, *COMMAND_RERUN]:
if string in ALL_COMMANDS:
return
return super().append_string(string)

Expand Down

0 comments on commit 46247d3

Please sign in to comment.