Skip to content

Commit

Permalink
fix(completion): Do not complete plan types on headline line
Browse files Browse the repository at this point in the history
  • Loading branch information
kristijanhusak committed Oct 28, 2024
1 parent c654095 commit 8b1dfcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/orgmode/org/autocompletion/sources/plan.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ end
---@return number | nil
function OrgCompletionPlan:get_start(context)
local prev_line = vim.fn.getline(vim.fn.line('.') - 1)
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
return nil
end

Expand Down

0 comments on commit 8b1dfcd

Please sign in to comment.