We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec151bc commit 1d8621fCopy full SHA for 1d8621f
lua/orgmode/org/mappings.lua
@@ -82,8 +82,9 @@ function OrgMappings:cycle()
82
end
83
vim.cmd([[norm!j]])
84
local is_next_item_closed = vim.fn.foldclosed('.') ~= -1
85
+ local is_headline = vim.fn.getline('.'):match('^%*+%s+')
86
vim.cmd([[norm!k]])
- if is_next_item_closed then
87
+ if is_next_item_closed and not is_headline then
88
return vim.cmd([[norm!zczO]])
89
90
if vim.fn.foldlevel('.') == 1 then
0 commit comments