Skip to content

Commit 31890f1

Browse files
committed
fix(edit_file): buf_set_extmark
1 parent 8cc1e32 commit 31890f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/mcphub/native/neovim/files/edit_file/edit_ui.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ function EditUI:_highlight_hunk_block(hunk_block)
252252
if line_length < max_cols then
253253
return line .. string.rep(" ", max_cols - line_length)
254254
end
255+
return line
255256
end
256257

257258
-- Add deletion indicator for pure deletions
@@ -283,7 +284,6 @@ function EditUI:_highlight_hunk_block(hunk_block)
283284
virt_lines_above = virt_lines_above,
284285
priority = self.highlights.priority,
285286
}
286-
287287
-- For pure deletions, store the extmark_id for navigation
288288
if hunk_block.type == "deletion" then
289289
hunk_block.extmark_id = vim.api.nvim_buf_set_extmark(

0 commit comments

Comments
 (0)