branch: externals/company
commit 11ec5e1c593a95f822cb66ee5c6a22970ae49963
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
Skip buffer-list-update-hook in company--string-pixel-width too
#1492
---
company.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/company.el b/company.el
index f85d89645c..963c25d861 100644
--- a/company.el
+++ b/company.el
@@ -3295,7 +3295,8 @@ from the candidates list.")
(car (buffer-text-pixel-size nil nil t))
(let ((wb (window-buffer))
(hscroll (window-hscroll))
- (dedicated (window-dedicated-p)))
+ (dedicated (window-dedicated-p))
+ buffer-list-update-hook)
(unwind-protect
(progn
(when dedicated
@@ -3327,7 +3328,8 @@ from the candidates list.")
(inhibit-modification-hooks t)
(dedicated (window-dedicated-p))
(hscroll (window-hscroll))
- window-configuration-change-hook buffer-list-update-hook)
+ window-configuration-change-hook
+ buffer-list-update-hook)
(with-current-buffer (get-buffer-create " *company-sps*")
(unwind-protect
(progn