one more bug in doupdate

From: Alexander V. Lukyanov <lav_at_video.yars.free.net>
Date: Sun, 8 Jun 1997 11:37:43 +0400 (MSD)

This one is the reason why some Thomas' tests show great output volume
compared with non-hashmap version - non-hashmap one uses scrolling
in that cases and thus this wrong branch was not executed.

--- lib_doupdate.c.2 Sat Jun 7 23:21:41 1997
+++ lib_doupdate.c Sun Jun 8 02:20:51 1997
@@ -978,11 +978,11 @@
                         nLastChar--;
 
                 if((nLastChar == firstChar)
- && (SP->_el_cost < (screen_columns - nLastChar))) {
+ && (SP->_el_cost < (oLastChar - nLastChar))) {
                         GoTo(lineno, firstChar);
- ClrToEOL(blank);
                         if(newLine[firstChar] != blank )
                                 PutChar(newLine[firstChar]);
+ ClrToEOL(blank);
                 } else if( newLine[nLastChar] != oldLine[oLastChar]
                                 || !(_nc_idcok && has_ic()) ) {
                         GoTo(lineno, firstChar);

   Alexander.
Received on Sun Jun 08 1997 - 03:38:29 EDT

This archive was generated by hypermail 2.2.0 : Mon Dec 19 2011 - 06:24:16 EST