Expand the line buffer properly when completing