When I'm editing a file, if the completion list shows up, the text in the current window will always jump (sometime it will jump a few lines but mostly it will jump to the top of the window), after finishing typing or selecting the right candidate, it will jump back the original place, I got a gif to show what I mean.
NOTE: this problem cannot be replicated very easily, even by myself, even in the same file. But when I'm editing a source code file or org file, this happens a lot, it's really annoying.
I don't know if it is caused by company itself or not but it only happens in company completion list.
This is my company configuration:
(autoload 'company "company" t) (add-hook 'after-init-hook 'global-company-mode) (setq company-global-modes t) (setq company-tooltip-limit 30) (setq company-minimum-prefix-length 3) (setq company-show-numbers t) (setq company-dabbrev-other-buffers t) (setq company-transformers '(company-sort-by-occurrence)) (global-set-key (kbd "C-c <tab>") 'company-files) (defalias 'ci 'company-ispell) (add-hook 'org-mode-hook (lambda () (company-mode) (set (make-local-variable 'company-backends) '(( company-dabbrev company-dabbrev-code company-ispell company-files company-yasnippet)))))
Since the gif is about org-mode, so the last part(
company-backends) of my configuration snippet here is about