summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index a7414a787e3..100b1e6ac21 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2661,7 +2661,7 @@ If WILDCARD, it also runs the shell specified by `shell-file-name'."
(setq list (cons (substring switches 0 (match-beginning 0))
list)
switches (substring switches (match-end 0))))
- (setq list (cons (nreverse switches) list)))))
+ (setq list (nreverse (cons switches list))))))
(append list
(list
(if full-directory-p