Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Indenting the last item in a list causes error #213

Closed
jakewvincent opened this issue Apr 20, 2024 · 0 comments
Closed

Bug: Indenting the last item in a list causes error #213

jakewvincent opened this issue Apr 20, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jakewvincent
Copy link
Owner

jakewvincent commented Apr 20, 2024

If using tab to indent an empty list item, and said list item is the last item in the list, the following error is thrown:

Error executing Lua callback: ...cal/share/nvim/lazy/mkdnflow.nvim/lua/mkdnflow/lists.lua:104: attempt to index a nil value
stack traceback:
	...cal/share/nvim/lazy/mkdnflow.nvim/lua/mkdnflow/lists.lua:104: in function 'get_siblings'
	...cal/share/nvim/lazy/mkdnflow.nvim/lua/mkdnflow/lists.lua:161: in function 'update_numbering'
	...cal/share/nvim/lazy/mkdnflow.nvim/lua/mkdnflow/lists.lua:539: in function 'updateNumbering'
	.../share/nvim/lazy/mkdnflow.nvim/lua/mkdnflow/wrappers.lua:57: in function 'indentListItemOrJumpTableCell'
	....local/share/nvim/lazy/mkdnflow.nvim/plugin/mkdnflow.lua:39: in function <....local/share/nvim/lazy/mkdnflow.nvim/plugin/mkdnflow.lua:38>
@jakewvincent jakewvincent added the bug Something isn't working label Apr 20, 2024
@jakewvincent jakewvincent self-assigned this Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant