Skip to content

Commit

Permalink
Fix in QRfnames usage of both \# and \@
Browse files Browse the repository at this point in the history
* helm-files.el (helm-ff-query-replace-on-filenames): Do it.
  • Loading branch information
Thierry Volpiatto committed Jul 4, 2017
1 parent b7963a5 commit f369d4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion helm-files.el
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,12 @@ This doesn't replace inside the files, only modify filenames."
(setq target (helm-basename old))))
(t regexp))
(save-match-data
(cond ((string-match "\\\\#" rep)
(cond ((and (string-match-p "\\\\#" rep)
(string-match "\\\\@" rep))
(replace-regexp-in-string
"\\\\#" (format "%03d" (1+ count))
(replace-match target t t rep)))
((string-match "\\\\#" rep)
(replace-match
(format "%03d" (1+ count)) t t rep))
((string-match
Expand Down

0 comments on commit f369d4a

Please sign in to comment.