Refactor: More f-string for kitty

This commit is contained in:
pagedown
2022-01-29 20:17:46 +08:00
parent 74e70d2548
commit ba0f61d752
18 changed files with 34 additions and 34 deletions

View File

@@ -221,7 +221,7 @@ def real_main(global_opts: RCOptions) -> None:
if e.code != 0:
print(end=output_prefix, flush=True)
print_err(e)
print_err('Use "{}" to see how to use this command.'.format(emph('help ' + cmd)))
print_err('Use "{}" to see how to use this command.'.format(emph(f'help {cmd}')))
continue
except Exception:
print(end=output_prefix, flush=True)