aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
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/term.c
parent42a1ea04113c71d69acc316919b57e335290832d (diff)
downloademacs-a01f89afb472b9f032edc6c4eceb63f1a5690526.tar.gz
emacs-a01f89afb472b9f032edc6c4eceb63f1a5690526.zip
Fixed minor issues with truncation of menu items.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c5
1 files changed, 5 insertions, 0 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