]> git.eshelyaron.com Git - emacs.git/commitdiff
; (minibuffer-narrow-buffer-completions): Be more cautious.
authorEshel Yaron <me@eshelyaron.com>
Thu, 11 Jan 2024 19:34:15 +0000 (20:34 +0100)
committerEshel Yaron <me@eshelyaron.com>
Thu, 11 Jan 2024 19:34:15 +0000 (20:34 +0100)
lisp/minibuffer.el

index d99905c36279d8ab8b0935e72c900df10e6ee167..14e0d2770b7e6d7e147e85768879fe7160c13b8f 100644 (file)
@@ -3995,7 +3995,7 @@ See `read-file-name' for the meaning of the arguments."
                        (- (point) beg)
                        (completion--field-metadata beg)))
                  (last (last all)))
-            (setcdr last nil)
+            (when (consp last) (setcdr last nil))
             all))
          (modes (delete-dups
                  (mapcar