Skip to content

Commit b0181b2

Browse files
Removed duplicte variable using :range() call
1 parent 11dd03e commit b0181b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/render-markdown/integ/source.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ function M.list_prefix(row, node)
2626
return '' -- Don't run if on the same line, entry should already have a list marker.
2727
end
2828

29-
local start_row = select(1, marker:range())
3029
-- Retrieve the line from the buffer
31-
local marker_line = vim.api.nvim_buf_get_lines(0, start_row, start_row + 1, false)[1]
30+
local marker_line = vim.api.nvim_buf_get_lines(0, marker_row, marker_row + 1, false)[1]
3231

3332
if not marker_line or #marker_line == 0 then
3433
return '' -- Return empty if the line is empty or doesn't exist

0 commit comments

Comments
 (0)