Commit 0d370700 authored by Jim Blandy's avatar Jim Blandy
Browse files

* dired-aux.el (dired-diff): Work even when the mark is inactive.

parent e11094e6
......@@ -45,8 +45,8 @@
FILE defaults to the file at the mark.
The prompted-for file is the first file given to `diff'."
(interactive
(let ((default (if (mark)
(save-excursion (goto-char (mark))
(let ((default (if (mark t)
(save-excursion (goto-char (mark t))
(dired-get-filename t t)))))
(list (read-file-name (format "Diff %s with: %s"
(dired-get-filename t)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment