Skip to content

Commit

Permalink
fix yank for #1588
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxxr committed Nov 10, 2024
1 parent cc25047 commit 7433cc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/edit.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@
(let ((string (if (null arg)
(yank-from-clipboard-or-killring)
(peek-killring-item (current-killring) (1- arg)))))
(yank-string (current-point) string)))
(when string
(yank-string (current-point) string))))

(define-command yank (&optional arg) (:universal-nil)
"Paste the copied text."
Expand Down

0 comments on commit 7433cc1

Please sign in to comment.