branch: externals/company
commit 1c68b20f10348039bd289eae2fd1bd583a3ec560
Author: Dmitry Gutov <dmi...@gutov.dev>
Commit: Dmitry Gutov <dmi...@gutov.dev>

    company-pseudo-tooltip-frontend: Check that OV is non-nil
    
    Fixes #1415
---
 company.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/company.el b/company.el
index c62f9a4df0..da24fac231 100644
--- a/company.el
+++ b/company.el
@@ -3752,7 +3752,7 @@ Returns a negative number if the tooltip should be 
displayed above point."
     (pre-command (company-pseudo-tooltip-hide-temporarily))
     (unhide
      (let ((ov company-pseudo-tooltip-overlay))
-       (when (> (overlay-get ov 'company-height) 0)
+       (when (and ov (> (overlay-get ov 'company-height) 0))
          ;; Sleight of hand: if the current line wraps, we adjust the
          ;; start of the overlay so that the popup does not zig-zag,
          ;; but don't update the popup's background.  This seems just

Reply via email to