From 402fac3edf6bb1817a3f7372f12f97bd4c04829b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 19 Apr 2022 10:53:18 +0530 Subject: [PATCH] ... --- kittens/diff/patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kittens/diff/patch.py b/kittens/diff/patch.py index 44c777a76..b9d8d856f 100644 --- a/kittens/diff/patch.py +++ b/kittens/diff/patch.py @@ -200,7 +200,7 @@ def parse_patch(raw: str) -> Patch: else: if current_hunk is None: continue - q = line[0] + q = line[0] if line else '' if q == '+': current_hunk.add_line() elif q == '-':