Skip to content
Merged
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
5 changes: 1 addition & 4 deletions lua/orgmode/ui/virtual_indent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,7 @@ function VirtualIndent:attach()
if not self._attached then
return true
end
-- HACK: By calling `set_indent` twice, once synchronously and once in `vim.schedule` we get smooth usage of the
-- virtual indent in most cases and still properly handle undo redo. Unfortunately this is called *early* when
-- `undo` or `redo` is used causing the padding to be incorrect for some headlines.
self:set_indent(start_line, end_line)

vim.schedule(function()
self:set_indent(start_line, end_line)
end)
Expand Down