diff options
-rw-r--r-- | src/minibuf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 167aece973a..52d1275451b 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -969,6 +969,8 @@ static Lisp_Object nth_minibuffer (EMACS_INT depth) { Lisp_Object tail = Fnthcdr (make_fixnum (depth), Vminibuffer_list); + if (NILP (tail)) + return Qnil; return XCAR (tail); } |