(decode_mode_spec): Use frame F, not selected frame.

On termcap frames, implicit names are ok.
This commit is contained in:
Richard M. Stallman 1996-04-16 23:07:52 +00:00
parent 9c6da96f00
commit 95184b48ec

View file

@ -3721,10 +3721,10 @@ decode_mode_spec (w, c, spec_width, maxwidth)
case 'F':
/* %F displays the frame name. */
#ifdef MULTI_FRAME
if (!NILP (selected_frame->title))
return (char *) XSTRING (selected_frame->title)->data;
if (selected_frame->explicit_name)
return (char *) XSTRING (selected_frame->name)->data;
if (!NILP (f->title))
return (char *) XSTRING (f->title)->data;
if (f->explicit_name || FRAME_TERMCAP_P (f))
return (char *) XSTRING (f->name)->data;
#endif
return "Emacs";