From 2a249cdf2711b329b8d90a7db61226b290fe1a13 Mon Sep 17 00:00:00 2001 From: Harrison Cramer Date: Tue, 25 Apr 2023 21:59:44 -0400 Subject: [PATCH] Line number set (either new_line or old_line) --- lua/gitlab/discussions.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/gitlab/discussions.lua b/lua/gitlab/discussions.lua index 35c0a4f..e054d00 100644 --- a/lua/gitlab/discussions.lua +++ b/lua/gitlab/discussions.lua @@ -192,12 +192,13 @@ M.build_note = function(note) local noteHeader = "@" .. 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( { text = noteHeader, id = note.id, file_name = note.position.new_path, - line_number = note.position.new_line, + line_number = line_number, is_note = true }, noteTextNodes)