sebastiencs / company-box

A company front-end with icons
565 stars 64 forks source link

First char is missing #126

Closed allenryb closed 4 years ago

allenryb commented 4 years ago

The first character of the first word in a line is missing in the first candidate of company-box. For example, the first company candidate of use will be listed as se and the number "1" is missed: companybox2 This problem only appear at the first word of a line.

Although the completion is right, it's annoying. May I ask how to fix this? My emacs version: 27.1 Operating system: Ubuntu 20.04

sebastiencs commented 4 years ago

Hello @allenryb, does it always occurs or under certain conditions ? If you are scrolling the list of candidates, does it still occurs with the 1st line ?

Could you send your configuration for company-box ? Or if your full configuration is public maybe send a link to it ?

allenryb commented 4 years ago

It always occurs. If I scroll the list of candidates, it still occurs. Moreover if I scroll back, the previous candidates will miss the fisrt character.

companybox

My configuration about company-mode and company-box is

(use-package company 
  :ensure t
  :diminish company-mode
  :config
  (add-hook 'after-init-hook 'global-company-mode)
  (setq company-show-numbers t)
  (setq company-dabbrev-downcase nil) 
  (setq company-dabbrev-ignore-case nil)
  (setq company-idle-delay 0))

(use-package company-box
  :ensure t
  :hook (company-mode . company-box-mode)
  :init
  (setq company-box-doc-enable nil))
sebastiencs commented 4 years ago

@allenryb https://github.com/sebastiencs/company-box/commit/4265eaf9e4d29f8b93e125fa807e2085e8e0ea3b should fix your issue. Can you please confirm

allenryb commented 4 years ago

It's fixed. Thanks!