We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c654095 commit 8b1dfcdCopy full SHA for 8b1dfcd
lua/orgmode/org/autocompletion/sources/plan.lua
@@ -23,7 +23,7 @@ end
23
---@return number | nil
24
function OrgCompletionPlan:get_start(context)
25
local prev_line = vim.fn.getline(vim.fn.line('.') - 1)
26
- if not self.completion:is_headline_line(prev_line) then
+ if not self.completion:is_headline_line(prev_line) or self.completion:is_headline_line(vim.fn.getline('.')) then
27
return nil
28
end
29
0 commit comments