diff options
Diffstat (limited to 'lisp/dired.el')
-rw-r--r-- | lisp/dired.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 48296ba26a..0ad019a321 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1615,7 +1615,9 @@ You can then feed the file name(s) to other commands with \\[yank]." (dired-get-marked-files t))) (dired-get-marked-files 'no-dir)) " ")))) - (kill-new string) + (if (eq last-command 'kill-region) + (kill-append string nil) + (kill-new string)) (message "%s" string))) |