Skip to content

Commit

Permalink
fix(input): Do not set completion function if not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
kristijanhusak committed Jan 19, 2025
1 parent ebbf28c commit 3ba6db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/orgmode.vim
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function! OrgmodeInput(prompt, default, ...) abort
\ 'cancelreturn': v:null,
\ }

if a:0 > 0
if a:0 > 0 && a:1 !=? v:null
let opts.completion = 'customlist,'..get(a:1, 'name')
endif
return input(opts)
Expand Down

0 comments on commit 3ba6db7

Please sign in to comment.