Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ jobs:
fail-fast: false
matrix:
version:
- v0.10.0
- v0.10.1
- v0.10.2
- v0.10.3
- v0.10.4
- nightly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions lua/orgmode/files/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ end
function OrgFiles:get_closest_listitem()
local get_listitem_node = function()
local node_at_cursor = ts_utils.get_node_at_cursor()
if node_at_cursor and node_at_cursor:type() == 'list' then
return node_at_cursor:named_child(0)
end
return ts_utils.closest_node(node_at_cursor, 'listitem')
end

Expand Down
4 changes: 2 additions & 2 deletions tests/plenary/utils_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ describe('Util', function()
local ok, err = pcall(promise.wait, promise)
assert.is.False(ok)
assert(err)
local expected = 'E5560: Vimscript function must not be called in a lua loop callback'
local msg = err:sub(#err - #expected)
local expected = 'E5560: Vimscript function'
local msg = err:sub(1, #expected)
assert.are.equal(expected, msg)
end)

Expand Down
Loading