Line number set (either new_line or old_line)
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user