Skip to content

Commit 606d931

Browse files
Fix: Note Creation Bug (#441)
1 parent 621bfa6 commit 606d931

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/go.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
branches:
55
- main
66
- develop
7+
paths:
8+
- 'cmd/**' # Ignore changes to the Lua code
9+
- 'go.sum'
10+
- 'go.mod'
711
jobs:
812
go_lint:
913
name: Lint Go 💅

.github/workflows/lua.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branches:
55
- main
66
- develop
7+
paths:
8+
- 'lua/**' # Ignore changes to the Go code
79
jobs:
810
lua_lint:
911
name: Lint Lua 💅

lua/gitlab/actions/discussions/tree.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,9 @@ M.restore_cursor_position = function(winid, tree, original_node, root_node)
457457
end
458458
end
459459
if line_number ~= nil then
460-
vim.api.nvim_win_set_cursor(winid, { line_number, 0 })
460+
if vim.api.nvim_win_is_valid(winid) then
461+
vim.api.nvim_win_set_cursor(winid, { line_number, 0 })
462+
end
461463
end
462464
end
463465

0 commit comments

Comments
 (0)