company-posframe icon indicating copy to clipboard operation
company-posframe copied to clipboard

Company frame truncated when there is only one candidate

Open rrudakov opened this issue 4 years ago • 1 comments

I use next company settings to trigger popup with candidates even if there is only one candidate:

(setq company-frontends '(company-pseudo-tooltip-frontend
                          company-echo-metadata-frontend))

2020-06-13_10-40

output-2020-06-13-10:45:11

rrudakov avatar Jun 13 '20 08:06 rrudakov

I can reproduce this as well on Emacs 27.1 on macOS

AFAICT, fit-frame-to-buffer is resizing too narrowly by one (or two, if there's meant to be a space to the right of the candidate) characters. When there are multiple candidates, it resizes correctly.

aaronjensen avatar Nov 02 '20 03:11 aaronjensen