term.input.input:promote_completion

term.input

input:promote_completion() -> redraw

Promote completion to common prefix or accept if single candidate

Two-phase promotion logic. With a single candidate, or when the provider signals should_promote_full(), delegates to promote_completion_full(). With multiple candidates, appends the longest common prefix to the input and re-runs the completion search.