branch: scratch/add-vdiff
commit c912ebcd91a27008fe8db2c025969a5d0fe0b81f
Author: justbur <[email protected]>
Commit: justbur <[email protected]>

    Don't use window-size-change-hook
    
    It runs too often
---
 vdiff.el | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/vdiff.el b/vdiff.el
index b0a6c7e..7b7f47d 100644
--- a/vdiff.el
+++ b/vdiff.el
@@ -1299,8 +1299,6 @@ commands like `vdiff-files' or `vdiff-buffers'."
   (cond (vdiff-mode
          (setq cursor-in-non-selected-windows nil)
          (add-hook 'after-save-hook #'vdiff-refresh nil t)
-         (add-hook 'window-size-change-functions
-                   'vdiff--remove-fold-overlays)
          (add-hook 'after-change-functions
                    'vdiff--after-change-function nil t)
          (when vdiff-lock-scrolling
@@ -1311,8 +1309,6 @@ commands like `vdiff-files' or `vdiff-buffers'."
          (vdiff--remove-all-overlays)
          (setq cursor-in-non-selected-windows t)
          (remove-hook 'after-save-hook #'vdiff-refresh t)
-         (remove-hook 'window-size-change-functions
-                      'vdiff--remove-fold-overlays)
          (remove-hook 'after-change-functions
                       'vdiff--after-change-function t)
          (when vdiff-scroll-lock-mode

Reply via email to