aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2013-09-18 23:31:07 +0300
committerEli Zaretskii2013-09-18 23:31:07 +0300
commita01f89afb472b9f032edc6c4eceb63f1a5690526 (patch)
treebf2b6a05455da532848c97a7e14b33f9bf34c2e4 /src
parent42a1ea04113c71d69acc316919b57e335290832d (diff)
downloademacs-a01f89afb472b9f032edc6c4eceb63f1a5690526.tar.gz
emacs-a01f89afb472b9f032edc6c4eceb63f1a5690526.zip
Fixed minor issues with truncation of menu items.
Diffstat (limited to 'src')
-rw-r--r--src/term.c5
-rw-r--r--src/xdisp.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index a9498cf63c3..09e2765755f 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3749,6 +3749,10 @@ tty_menu_show (struct frame *f, int x, int y, int for_click, int keymaps,
3749 if (ulx < 0) x -= ulx; 3749 if (ulx < 0) x -= ulx;
3750 if (uly < 0) y -= uly; 3750 if (uly < 0) y -= uly;
3751 3751
3752#if 0
3753 /* This code doesn't make sense on a TTY, since it can easily annul
3754 the adjustments above that carefully avoid truncation of the menu
3755 items. */
3752 if (! for_click) 3756 if (! for_click)
3753 { 3757 {
3754 /* If position was not given by a mouse click, adjust so upper left 3758 /* If position was not given by a mouse click, adjust so upper left
@@ -3757,6 +3761,7 @@ tty_menu_show (struct frame *f, int x, int y, int for_click, int keymaps,
3757 x += width/2; 3761 x += width/2;
3758 y += 1.5*height/(maxlines+2); 3762 y += 1.5*height/(maxlines+2);
3759 } 3763 }
3764#endif
3760 3765
3761 pane = selidx = 0; 3766 pane = selidx = 0;
3762 3767
diff --git a/src/xdisp.c b/src/xdisp.c
index 4e0709c59d7..139218ae1dd 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -20646,7 +20646,7 @@ display_tty_menu_item (const char *item_text, int width, int face_id,
20646 20646
20647 init_iterator (&it, w, -1, -1, f->desired_matrix->rows + y, MENU_FACE_ID); 20647 init_iterator (&it, w, -1, -1, f->desired_matrix->rows + y, MENU_FACE_ID);
20648 it.first_visible_x = 0; 20648 it.first_visible_x = 0;
20649 it.last_visible_x = FRAME_COLS (f); 20649 it.last_visible_x = FRAME_COLS (f) - 1;
20650 row = it.glyph_row; 20650 row = it.glyph_row;
20651 /* Start with the row contents from the current matrix. */ 20651 /* Start with the row contents from the current matrix. */
20652 deep_copy_glyph_row (row, f->current_matrix->rows + y); 20652 deep_copy_glyph_row (row, f->current_matrix->rows + y);