Skip to content

Commit e66a641

Browse files
committedApr 10, 2025·
fix(checkbox): Go to correct location after adding new checkbox list item
Fixes #960
1 parent 08873bf commit e66a641

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lua/orgmode/org/mappings.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ function OrgMappings:_insert_item_below(listitem)
701701
if #text_edits > 0 then
702702
vim.lsp.util.apply_text_edits(text_edits, vim.api.nvim_get_current_buf(), constants.default_offset_encoding)
703703

704-
vim.fn.cursor(end_row + 1 + (add_empty_line and 1 or 0), 1) -- +1 for next line
704+
vim.fn.cursor(end_row + 1 + (add_empty_line and 1 or 0), 99999) -- +1 for next line, go to end of line with arbitrary big column number
705705

706706
-- update all parents when we insert a new checkbox
707707
if checkbox then

0 commit comments

Comments
 (0)