[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: info crashes after set-screen-height [0-5] + <ENTER>
From: |
Karl Berry |
Subject: |
Re: info crashes after set-screen-height [0-5] + <ENTER> |
Date: |
Mon, 8 Dec 2003 14:17:39 -0500 |
Hi Christian,
Thanks for the report. I'm not sure if info can behave sensibly with
such a small window, but here's a simple patch that at least stops it
from crashing.
karl
*** session.c.~1.1.1.1.~ Fri Dec 5 17:33:03 2003
--- session.c Mon Dec 8 11:14:02 2003
***************
*** 4428,4437 ****
_("Select reference or menu item appearing on this
line"))
{
char *line;
! NODE *orig;
! line = window->line_starts[window_line_of_point (window)];
! orig = window->node;
/* If this line contains a menu item, select that one. */
if (strncmp ("* ", line, 2) == 0)
--- 4428,4439 ----
_("Select reference or menu item appearing on this
line"))
{
char *line;
! NODE *orig = window->node;
! if (window->line_starts)
! line = window->line_starts[window_line_of_point (window)];
! else
! line = "";
/* If this line contains a menu item, select that one. */
if (strncmp ("* ", line, 2) == 0)