emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/company 1c68b20f10 1/2: company-pseudo-tooltip-frontend


From: ELPA Syncer
Subject: [elpa] externals/company 1c68b20f10 1/2: company-pseudo-tooltip-frontend: Check that OV is non-nil
Date: Mon, 16 Oct 2023 21:57:39 -0400 (EDT)

branch: externals/company
commit 1c68b20f10348039bd289eae2fd1bd583a3ec560
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@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

[Prev in Thread] Current Thread [Next in Thread]