From 5d3bbc3631504910c7161ba8effa70f77185fee5 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Thu, 12 Feb 2026 18:10:33 -0500 Subject: [PATCH] fix(ci): styling --- lua/diffs/parser.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/diffs/parser.lua b/lua/diffs/parser.lua index 8def0e6..daa6fd3 100644 --- a/lua/diffs/parser.lua +++ b/lua/diffs/parser.lua @@ -260,7 +260,14 @@ function M.parse_buffer(bufnr) if new_remaining and (prefix == ' ' or prefix == '+') then new_remaining = new_remaining - 1 end - elseif line == '' and is_unified_diff and old_remaining and old_remaining > 0 and new_remaining and new_remaining > 0 then + elseif + line == '' + and is_unified_diff + and old_remaining + and old_remaining > 0 + and new_remaining + and new_remaining > 0 + then table.insert(hunk_lines, ' ') old_remaining = old_remaining - 1 new_remaining = new_remaining - 1