* lisp/find-dired.el (find-dired): Fix bug where M-p skips first history item.
Don't apply "skip first duplicate history item" trick when find-args used as initial input is nil.
This commit is contained in:
parent
647cc9c65e
commit
e6c5f32e77
1 changed files with 3 additions and 1 deletions
|
@ -177,7 +177,9 @@ using GNU findutils (on macOS and *BSD systems), see instead the
|
|||
man page for \"find\"."
|
||||
(interactive (list (read-directory-name "Run find in directory: " nil "" t)
|
||||
(read-string "Run find (with args): " find-args
|
||||
'(find-args-history . 1))))
|
||||
(if find-args
|
||||
'(find-args-history . 1)
|
||||
'find-args-history))))
|
||||
(setq find-args args ; save for next interactive call
|
||||
args (concat find-program " . "
|
||||
(if (string= args "")
|
||||
|
|
Loading…
Add table
Reference in a new issue