diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 2786b74b..73f5ad13 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -4,6 +4,10 @@ on: branches: - main - develop + paths: + - 'cmd/**' # Ignore changes to the Lua code + - 'go.sum' + - 'go.mod' jobs: go_lint: name: Lint Go 💅 diff --git a/.github/workflows/lua.yaml b/.github/workflows/lua.yaml index 75042618..a8998468 100644 --- a/.github/workflows/lua.yaml +++ b/.github/workflows/lua.yaml @@ -4,6 +4,8 @@ on: branches: - main - develop + paths: + - 'lua/**' # Ignore changes to the Go code jobs: lua_lint: name: Lint Lua 💅 diff --git a/lua/gitlab/actions/discussions/tree.lua b/lua/gitlab/actions/discussions/tree.lua index a812f42e..7451a802 100644 --- a/lua/gitlab/actions/discussions/tree.lua +++ b/lua/gitlab/actions/discussions/tree.lua @@ -457,7 +457,9 @@ M.restore_cursor_position = function(winid, tree, original_node, root_node) end end if line_number ~= nil then - vim.api.nvim_win_set_cursor(winid, { line_number, 0 }) + if vim.api.nvim_win_is_valid(winid) then + vim.api.nvim_win_set_cursor(winid, { line_number, 0 }) + end end end