plugin autocomplete: update partial on manual trigger

This commit is contained in:
jgmdev 2022-10-25 17:20:31 -04:00
parent 3ccd696ffc
commit 0030c69524
1 changed files with 5 additions and 2 deletions

View File

@ -588,8 +588,11 @@ function autocomplete.open(on_close)
end
local av = get_active_view()
last_line, last_col = av.doc:get_selection()
update_suggestions()
if av then
partial = get_partial_symbol()
last_line, last_col = av.doc:get_selection()
update_suggestions()
end
end
function autocomplete.close()