patch-2.1.128 linux/scripts/lxdialog/textbox.c
Next file: linux/CREDITS
Previous file: linux/scripts/lxdialog/menubox.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Sun Nov 8 14:36:46 1998
- Orig file:
v2.1.127/linux/scripts/lxdialog/textbox.c
- Orig date:
Fri Oct 23 22:01:27 1998
diff -u --recursive --new-file v2.1.127/linux/scripts/lxdialog/textbox.c linux/scripts/lxdialog/textbox.c
@@ -453,9 +453,6 @@
{
int y, x;
char *line;
-#if OLD_NCURSES
- int i;
-#endif
line = get_line ();
line += MIN (strlen (line), hscroll); /* Scroll horizontally */
@@ -466,8 +463,11 @@
getyx (win, y, x);
/* Clear 'residue' of previous line */
#if OLD_NCURSES
- for (i = 0; i < width - x; i++)
- waddch (win, ' ');
+ {
+ int i;
+ for (i = 0; i < width - x; i++)
+ waddch (win, ' ');
+ }
#else
wclrtoeol(win);
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov