Fix bug #15575 with crashes in TTY menus.
authorEli Zaretskii <eliz@gnu.org>
Fri, 11 Oct 2013 11:01:48 +0000 (14:01 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 11 Oct 2013 11:01:48 +0000 (14:01 +0300)
commit48621e69064ea74eef6530d299cdc3548e170ce2
tree783dc060c8f9dda66307e6f561d5dc178f0d31ec
parentb9ff995e4c091ca99c8752bb996e155ce7147a00
Fix bug #15575 with crashes in TTY menus.

 src/xdisp.c (display_tty_menu_item): Make sure we never write beyond
 the end of the frame's glyph matrix.
 src/term.c (tty_menu_display): Don't move cursor while overwriting
 frame's glyphs with menu items.  Limit the number of items
 displayed to what can be shown on the available screen lines,
 excluding the echo area.
 (tty_menu_activate): Limit the Y coordinate allowed by
 read_menu_input to the last screen line used for menu display.
src/ChangeLog
src/term.c
src/xdisp.c