************************************************************************/
static void
-tty_set_cursor (void)
+tty_set_cursor (struct frame *f)
{
- struct frame *f = SELECTED_FRAME ();
-
if ((cursor_in_echo_area
/* If we are showing a message instead of the mini-buffer,
show the cursor for the message instead of for the
else
{
/* We have only one cursor on terminal frames. Use it to
- display the cursor of the selected window. */
+ display the cursor of the selected window of the frame. */
struct window *w = XWINDOW (FRAME_SELECTED_WINDOW (f));
if (w->cursor.vpos >= 0
/* The cursor vpos may be temporarily out of bounds
/* Now just clean up termcap drivers and set cursor, etc. */
if (set_cursor_p)
- tty_set_cursor ();
+ tty_set_cursor (f);
}
/* Do line insertions/deletions on frame F for frame-based redisplay. */