1 #ifndef lint 2 static char *sccsid = "@(#)cmd5.c 3.1 83/08/11"; 3 #endif 4 5 #include "defs.h" 6 7 /* 8 c_scroll(dir) 9 int dir; 10 { 11 register brow = selwin->ww_scroll; 12 13 brow += dir * selwin->ww_w.nrow / 2; 14 if (brow < 0) 15 brow = 0; 16 else if (brow + selwin->ww_w.nrow > selwin->ww_nline) 17 brow = selwin->ww_nline - selwin->ww_w.nrow; 18 if (brow != selwin->ww_scroll) { 19 selwin->ww_scroll = brow; 20 wwredrawwin(selwin); 21 } 22 } 23 */ 24