vc-user-edit-command: Add trailing space to initial input

* lisp/vc/vc-dispatcher.el (vc-user-edit-command): Add trailing
space to initial input to ease adding additional flags.
This commit is contained in:
Sean Whitton 2025-04-20 09:40:12 +08:00
parent 8abd2ee052
commit 45232485ae

View file

@ -328,10 +328,11 @@ Intended to be used as the value of `vc-filter-command-function'."
(if file-or-list
" (files list to be appended)"
""))
(combine-and-quote-strings
(cons command (remq nil (if files-separator-p
(butlast flags)
flags))))))))
(concat (combine-and-quote-strings
(cons command (remq nil (if files-separator-p
(butlast flags)
flags))))
" ")))))
(list (car edited) file-or-list
(nconc (cdr edited) (and files-separator-p '("--"))))))