Fix assertions in nth_minibuffer
* src/minibuf.c (nth_minibuffer): Avoid assertion violation when DEPTHth minibuffer doesn't exist. (Bug#48337)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user