Fix: Discussion + Note Creation Bugs (#151)

This MR is an attempt to resolve some of the issues this plugin is experiencing with Gitlab's API surrounding comments, in particular the specifics around when to send the "old line" versus "new line" and the file hashes.

This is a PATCH release.
This commit is contained in:
Harrison (Harry) Cramer
2024-01-13 10:52:45 -05:00
committed by GitHub
parent ed3a90cf00
commit 519791c81c
3 changed files with 41 additions and 6 deletions

View File

@@ -53,7 +53,9 @@ M.update_winbar = function(discussions, unlinked_discussions, base_title)
local d = require("gitlab.actions.discussions")
local winId = d.split.winid
local c = content(discussions, unlinked_discussions, base_title)
vim.wo[winId].winbar = c
if vim.wo[winId] then
vim.wo[winId].winbar = c
end
end
return M