Merge branch 'main' into bugfix/remove-autoimport-dead-code

This commit is contained in:
blessedcoolant
2023-04-07 17:07:25 +12:00
committed by GitHub
24 changed files with 964 additions and 46 deletions

View File

@ -576,6 +576,7 @@ def do_command(command: str, gen, opt: Args, completer) -> tuple:
elif command.startswith("!replay"):
file_path = command.replace("!replay", "", 1).strip()
file_path = os.path.join(opt.outdir, file_path)
if infile is None and os.path.isfile(file_path):
infile = open(file_path, "r", encoding="utf-8")
completer.add_history(command)