branch: elpa/dirvish
commit b99e30441d78d370b1cd68ea6c9734c092d80b46
Author: Alex Lu <hellosimon1...@hotmail.com>
Commit: Alex Lu <hellosimon1...@hotmail.com>

    fix: remove unneeded overlays in wdired
---
 dirvish.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dirvish.el b/dirvish.el
index f42e5cc448..0257310150 100644
--- a/dirvish.el
+++ b/dirvish.el
@@ -1415,7 +1415,8 @@ Dirvish sets `revert-buffer-function' to this function."
 (defun dirvish-wdired-enter-a (&rest _)
   "Advice for `wdired-change-to-wdired-mode'."
   (let (dirvish-hide-cursor) (dirvish--maybe-toggle-cursor 'hollow))
-  (dirvish--render-attrs (selected-window)))
+  (dolist (ov '(dirvish-a-ov dirvish-l-ov dirvish-r-ov))
+    (remove-overlays (point-min) (point-max) ov t)))
 
 (defun dirvish-find-alt-a ()
   "Advice for `dired-find-alternate-file'."

Reply via email to