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

    refactor(core): remove redundant `revert-buffer` during selecting
    
    This is redundant now as we are keeping track of `dired-buffers`, Dired 
takes
    care of the buffer refreshing.
---
 dirvish.el | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/dirvish.el b/dirvish.el
index 8a00695d9f..9ce9cf6c64 100644
--- a/dirvish.el
+++ b/dirvish.el
@@ -1499,12 +1499,6 @@ With optional NOSELECT just find files but do not select 
them."
     (setcdr (assoc (car hist) dired-buffers) buffer)
     (with-current-buffer buffer
       (dirvish--setup-dired)
-      (cond (new? nil)
-            ((and (not remote) (not (equal flags dired-actual-switches)))
-             (dired-sort-other flags))
-            ((eq dired-auto-revert-buffer t) (revert-buffer))
-            ((functionp dired-auto-revert-buffer)
-             (when (funcall dired-auto-revert-buffer dir) (revert-buffer))))
       (funcall (dv-root-conf dv) buffer)
       (dirvish-prop :dv (dv-id dv))
       (dirvish-prop :gui (display-graphic-p))

Reply via email to