tumashu / vertico-posframe

GNU General Public License v3.0
106 stars 16 forks source link

First letter sometimes is cutted #12

Open otavioschwanck opened 2 years ago

otavioschwanck commented 2 years ago

image

tumashu commented 2 years ago

I do not know why, maybe you can try with 'emacs -Q'

Patryk27 commented 2 years ago

FWIW, M-x vertico-posframe-cleanup seems to solve this issue (not sure what triggers it just yet, though).

C1oud555 commented 1 year ago

I came across this issue sometimes. But can't find a certain way to reproduce it.

stardiviner commented 1 year ago

Me too. Meet this problem sometimes. Can't find out the pattern of reason. You can see, not just the candidate hidden prefix part, also the prompt hidden some part too.

Screenshot 2023-05-06 at 12 12 38@2x

stardiviner commented 1 year ago

After checking source code. My suspect points is posframe-show's option :lines-truncate.

https://github.com/tumashu/vertico-posframe/blob/7da6d648ff4202a48eb6647ee7dce8d65de48779/vertico-posframe.el#L288

And in posframe.el library soruce code:

https://github.com/tumashu/posframe/blob/3b97dc180b03498103cfcc7f44e64150df440bf0/posframe.el#L443

https://github.com/tumashu/posframe/blob/3b97dc180b03498103cfcc7f44e64150df440bf0/posframe.el#L628

The truncate-lines is from Emacs built-in support, I guess maybe Emacs built-in truncate-lines has issue.

This is what I can find. Hope someone can locate the problem.