* tui/tui-win.c (parse_scrolling_args): Fix SEGV error with invalid

scroll commands.
This commit is contained in:
Wu Zhou 2005-07-06 07:25:36 +00:00
parent bd49c137fe
commit ec502284db
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-07-06 Wu Zhou <woodzltc@cn.ibm.com>
* tui/tui-win.c (parse_scrolling_args): Fix SEGV error with invalid
scroll command.
2005-07-06 Wu Zhou <woodzltc@cn.ibm.com>
* f-exp.y (yyparse): Add code to support exponentiation expression.

View file

@ -1543,7 +1543,7 @@ parse_scrolling_args (char *arg, struct tui_win_info * * win_to_scroll,
if (*win_to_scroll == (struct tui_win_info *) NULL ||
!(*win_to_scroll)->generic.is_visible)
warning (_("Invalid window specified. \n\
error (_("Invalid window specified. \n\
The window name specified must be valid and visible.\n"));
else if (*win_to_scroll == TUI_CMD_WIN)
*win_to_scroll = (struct tui_win_info *) (tui_source_windows ())->list[0];