]> git.eshelyaron.com Git - emacs.git/commitdiff
Strip 'display' text property from completion candidates
authorEshel Yaron <me@eshelyaron.com>
Sat, 18 May 2024 18:47:01 +0000 (20:47 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 18 May 2024 18:47:01 +0000 (20:47 +0200)
This fixes choosing multiline candidates in 'yank-pop'.

lisp/minibuffer.el

index ad88822ff16510a39889712a61b116a2b884cd25..de690d83804fcc8d9f232173edcc593adb32b4a7 100644 (file)
@@ -1426,7 +1426,7 @@ Moves point to the end of the new text."
   ;; `completions-first-difference' face, which we don't want to
   ;; include upon insertion.
   (setq newtext (copy-sequence newtext))
-  (remove-text-properties 0 (length newtext) '(face) newtext)
+  (remove-text-properties 0 (length newtext) '(face nil display nil) newtext)
   ;; Maybe this should be in subr.el.
   ;; You'd think this is trivial to do, but details matter if you want
   ;; to keep markers "at the right place" and be robust in the face of