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

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

[elpa] externals/company e3cf2f2398 1/2: company-safe-pixel-substring: T


From: ELPA Syncer
Subject: [elpa] externals/company e3cf2f2398 1/2: company-safe-pixel-substring: Take buffer-display-table into account
Date: Sat, 18 Nov 2023 21:57:30 -0500 (EST)

branch: externals/company
commit e3cf2f2398d4c49a1fc9518fca71f8617d76c9c5
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    company-safe-pixel-substring: Take buffer-display-table into account
    
    Supporting painting over characters with altered display (with their width
    changed), e.g. the line by https://github.com/purcell/page-break-lines.
---
 company.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index 43157197d3..97fa9b1ed8 100644
--- a/company.el
+++ b/company.el
@@ -2976,6 +2976,7 @@ from the candidates list.")
         front back
         (orig-buf (window-buffer))
         (bis buffer-invisibility-spec)
+        (bdt buffer-display-table)
         (inhibit-read-only t)
         (dedicated (window-dedicated-p))
         window-configuration-change-hook)
@@ -2984,7 +2985,8 @@ from the candidates list.")
           (progn
             (delete-region (point-min) (point-max))
             (insert str)
-            (setq-local buffer-invisibility-spec bis)
+            (setq-local buffer-invisibility-spec bis
+                        buffer-display-table bdt)
             (when dedicated (set-window-dedicated-p nil nil))
             (set-window-buffer nil (current-buffer) t)
 



reply via email to

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