Line number set (either new_line or old_line)

This commit is contained in:
Harrison Cramer
2023-04-25 21:59:44 -04:00
parent 44323b9a11
commit 2a249cdf27

View File

@@ -192,12 +192,13 @@ M.build_note = function(note)
local noteHeader = "@" .. local noteHeader = "@" ..
note.author.username .. " on " .. u.format_date(note.created_at) note.author.username .. " on " .. u.format_date(note.created_at)
local line_number = note.position.new_line or note.position.old_line
local note_node = NuiTree.Node( local note_node = NuiTree.Node(
{ {
text = noteHeader, text = noteHeader,
id = note.id, id = note.id,
file_name = note.position.new_path, file_name = note.position.new_path,
line_number = note.position.new_line, line_number = line_number,
is_note = true is_note = true
}, noteTextNodes) }, noteTextNodes)