Skip to content

Commit

Permalink
Tweak buffer name
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Oct 29, 2024
1 parent f85250b commit 5f3c16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user-lisp/editing-customisations.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5f3c16d

Please sign in to comment.