Skip to content

Commit

Permalink
fix: Ensure frame invisible before used
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Dec 24, 2023
1 parent 7faa866 commit 07350ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion company-box.el
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,7 @@ It doesn't nothing if a font icon is used."
(defun company-box-show (&optional on-update)
"Show the completion window."
(unless on-update
(make-frame-invisible (company-box--get-frame))
(setq company-box--parent-start (window-start))
(add-hook 'window-scroll-functions 'company-box--handle-scroll-parent nil t))
(company-box--save)
Expand All @@ -786,7 +787,7 @@ It doesn't nothing if a font icon is used."
company-box--prefix-pos nil
company-box--last-start nil
company-box--edges nil)
(company-box--show-frame nil)
(make-frame-invisible (company-box--get-frame))
(company-box--with-buffer nil
(setq company-box--last-start nil))
(remove-hook 'window-scroll-functions 'company-box--handle-scroll-parent t)
Expand Down

0 comments on commit 07350ad

Please sign in to comment.