Commits

Anonymous committed c082286

Fix the bug where isearch is not exited from in the "old" dired buffers

Comments (0)

Files changed (1)

 If in dired buffer, find file under cursor.  If it is a
 directory, go right back into search."
   (interactive)
-  (if (not (eq major-mode 'dired-mode))
-      (isearch-exit)
+  (isearch-exit)
+  (if (eq major-mode 'dired-mode)
     ;; we're assuming no files are marked
     (let ((d (car (dired-get-marked-files))))
       (dired-find-file)