Quick littel fix to less

Casey Leedom casey at lll-crg.llnl.gov
Mon Apr 4 14:51:17 AEST 1988


  The 'd', '^D', 'u', etc. commands don't base their scroll on the window
size.  Ten lines is often far too small for large windows.  It could also
be argued that ten lines would be too large for extremely tiny windows.
I've actually run into the tiny window problem, but most of the time I'm
just fighting the ten line scroll in large windows ...

Casey

-----
*** command.c-dist	Sat Oct 31 13:21:03 1987
--- command.c	Thu Mar 31 10:03:50 1988
***************
*** 228,234 ****
  {
  	register int c;
  	register int n;
! 	register int scroll = 10;
  
  	last_mcc = 0;
  	setjmp(main_loop);
--- 228,234 ----
  {
  	register int c;
  	register int n;
! 	register int scroll = (sc_height+1)/2;
  
  	last_mcc = 0;
  	setjmp(main_loop);



More information about the Comp.sources.bugs mailing list