if (ulx < 0) x -= ulx;
if (uly < 0) y -= uly;
+#if 0
+ /* This code doesn't make sense on a TTY, since it can easily annul
+ the adjustments above that carefully avoid truncation of the menu
+ items. */
if (! for_click)
{
/* If position was not given by a mouse click, adjust so upper left
x += width/2;
y += 1.5*height/(maxlines+2);
}
+#endif
pane = selidx = 0;
init_iterator (&it, w, -1, -1, f->desired_matrix->rows + y, MENU_FACE_ID);
it.first_visible_x = 0;
- it.last_visible_x = FRAME_COLS (f);
+ it.last_visible_x = FRAME_COLS (f) - 1;
row = it.glyph_row;
/* Start with the row contents from the current matrix. */
deep_copy_glyph_row (row, f->current_matrix->rows + y);