HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fa93733
)
Fix a buglet in calculating menu width.
author
Eli Zaretskii
<eliz@gnu.org>
Thu, 19 Sep 2013 12:03:40 +0000
(15:03 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Thu, 19 Sep 2013 12:03:40 +0000
(15:03 +0300)
src/term.c
patch
|
blob
|
blame
|
history
diff --git
a/src/term.c
b/src/term.c
index
451d608
..
553cc1b
100644
(file)
--- a/
src/term.c
+++ b/
src/term.c
@@
-2893,7
+2893,7
@@
tty_menu_calc_size (tty_menu *menu, int *width, int *height)
{
int i, h2, w2, maxsubwidth, maxheight;
- maxsubwidth =
0
;
+ maxsubwidth =
menu->width
;
maxheight = menu->count;
for (i = 0; i < menu->count; i++)
{
@@
-2904,7
+2904,7
@@
tty_menu_calc_size (tty_menu *menu, int *width, int *height)
if (i + h2 > maxheight) maxheight = i + h2;
}
}
- *width = m
enu->width + m
axsubwidth;
+ *width = maxsubwidth;
*height = maxheight;
}