Cleanup previous PR

This commit is contained in:
Kovid Goyal 2022-02-06 06:31:56 +05:30
parent 49183ced3b
commit 7c36c19de0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -383,7 +383,7 @@ class Tab: # {{{
import shlex
with suppress(OSError):
with open(old_exe) as f:
cmd_rest = cmd[1:] if len(cmd) > 1 else []
cmd_rest = cmd[1:]
cmd = [kitty_exe(), '+hold']
if f.read(2) == '#!':
line = f.read(4096).splitlines()[0]