]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/simple.el (read-from-kill-ring): Use frame-text-cols, not frame-width.
authorJuri Linkov <juri@linkov.net>
Fri, 27 Nov 2020 09:00:43 +0000 (11:00 +0200)
committerJuri Linkov <juri@linkov.net>
Fri, 27 Nov 2020 09:00:43 +0000 (11:00 +0200)
lisp/simple.el

index c9f4f2bb4455f177a88b343c88d94ab39247daba..77888d07f1e25d31f5bdf9f891566eb231ec2ec2 100644 (file)
@@ -5478,7 +5478,7 @@ With ARG, rotate that many kills forward (or backward, if negative)."
           (mapcar (lambda (s)
                     (let* ((s (query-replace-descr s))
                            (b 0)
-                           (limit (frame-width)))
+                           (limit (frame-text-cols)))
                       ;; Add ellipsis on leading whitespace
                       (when (string-match "\\`[[:space:]]+" s)
                         (setq b (match-end 0))