diff --git a/user-lisp/editing-customisations.el b/user-lisp/editing-customisations.el index 86d20b2c..4e64a259 100644 --- a/user-lisp/editing-customisations.el +++ b/user-lisp/editing-customisations.el @@ -429,7 +429,7 @@ keep it visible when editing other similar code." (setq end-pos (point)) (buffer-substring start-pos end-pos))))) (words (s-split " " s)) - (buf (get-buffer-create (format "*copy: %s*" (nth 1 words)))) + (buf (get-buffer-create (format "*copy: %s*" (s-trim (nth 1 words))))) (inhibit-read-only t)) (with-current-buffer buf (delete-region (point-min) (point-max))