New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completions list display corrupted #1427
Comments
|
Hi! I'm trying to reproduce this, but no luck so far. Including when trying in text-mode, with Emacs 29, and with exact buffer contents like you posted in step 1. You didn't actually produce a scenario starting from Toggling |
|
After much experimentation, I can re-create the issue from
To run this setup, ensure your existing After loading you will be presented with a text buffer with the cursor on the end of the first line. At this point, press 'n' to generate 'lin' which company will show the completions for. And they will be misaligned! The crucial line in the setup seems to be: Removing this fixes the issue! Thanks, |
|
Thanks! It is indeed the clash between the original user option and the mode that was added on top of it. Some built-in functions (like I'll see what could be done in Company so that others don't have to fiddle with this too, and maybe send a bug report or two. For the record, though, you or anyone else don't need to set this variable. Turning on |
|
You're welcome. whilst I agree that I shouldn't set The other thing that might help is that this is a recent change - my customization file (at least the setting of So the issue must have been introduced in the last week or two. Thanks, |
Different, yes:
Indeed: the popup renderer now tries to perform pixel-perfect positioning (see NEWS), and for that I had to employ some new calculation functions. |
Output of the command
M-x company-diagEmacs 29.1 (x86_64-pc-linux-gnu) of 2023-11-13 on nil
Company 0.10.2
company-backends: (company-capf
(company-dabbrev-code company-dabbrev company-ispell)
company-files company-yasnippet company-keywords company-elisp)
Used backend: (company-dabbrev-code company-dabbrev company-ispell)
Major mode: text-mode
Prefix: "candidat"
Completions:
#("candidate" 0 9 (company-backend company-ispell))
#("candidate's" 0 11 (company-backend company-ispell))
#("candidates" 0 10 (company-backend company-ispell))
#("candidature" 0 11 (company-backend company-ispell))
#("candidatures" 0 12 (company-backend company-ispell))
Describe the issue
In Company 20231110.52 from melpa, the list of candidates are not aligned in the popup window.
This effects both GUI and terminal versions of emacs across Windows, Linux and Termux (Android).
It effects all completion backends I've tested (company-ispell and company-capf with lsp-mode).
Steps to reproduce
Expected behavior
The list of candidates should appear in an aligned list as a pop-up.
Screenshots
Could only capture as photo of screen.

Additional context
This only seems to effect instances where the popup windows appears beyond the end of some lines, like the number of spaces to insert between the end of the line and the start of the completion list is wrong.
The text was updated successfully, but these errors were encountered: