src/term.c (get_tty_display): Fall back to the current device if
display is nil. (Reported by Dan Nicolaescu <dann at ics dot uci dot edu>.)
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-81
return 1;
}
-/* Return the tty display object specified by DISPLAY.
- DISPLAY may be a frame or a string. */
+/* Return the tty display object specified by DISPLAY. DISPLAY may be
+ a frame, a string, or nil for the display device of the current
+ frame. */
static struct display *
get_tty_display (Lisp_Object display)
{
struct display *d;
+ if (NILP (display))
+ display = selected_frame;
+
if (! FRAMEP (display) && ! STRINGP (display))
return 0;