Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8b1dfcd

Browse files
fix(completion): Do not complete plan types on headline line
1 parent c654095 commit 8b1dfcd

File tree

1 file changed

+1
-1
lines changed
  • lua/orgmode/org/autocompletion/sources

1 file changed

+1
-1
lines changed

lua/orgmode/org/autocompletion/sources/plan.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ end
2323
---@return number | nil
2424
function OrgCompletionPlan:get_start(context)
2525
local prev_line = vim.fn.getline(vim.fn.line('.') - 1)
26-
if not self.completion:is_headline_line(prev_line) then
26+
if not self.completion:is_headline_line(prev_line) or self.completion:is_headline_line(vim.fn.getline('.')) then
2727
return nil
2828
end
2929

0 commit comments

Comments
 (0)