tumashu / company-posframe

121 stars 24 forks source link

Last commit breaks company-posframe in Emacs 27. #14

Closed yanghaoxie closed 5 years ago

yanghaoxie commented 5 years ago

After commit 977b7390cc4033ad087c46e7ba9f6fd7a6018869, company-posframe buffer blinks, I present an example as follow gif picture.

company-posframe

aaronjensen commented 5 years ago

Last time this broke, this is what fixed it: https://github.com/tumashu/company-posframe/pull/10/files

aaronjensen commented 5 years ago
(defun company-posframe-window-change ()
  "Hide posframe on window change."
  (unless (or (string= (buffer-name) company-posframe-buffer)
              (equal company-posframe--last-status
                     (list (selected-window)
                           (current-buffer))))
    (company-posframe-hide)))

Fixes it for me

yanghaoxie commented 5 years ago

It worked. Thanks, bro. @aaronjensen