===================================================================
RCS file: RCS/screen.c,v
retrieving revision 1.393
diff -u -r1.393 screen.c
--- screen.c	2009/08/14 09:31:27	1.393
+++ screen.c	2009/08/16 18:16:45
@@ -424,7 +424,6 @@
 	   unsigned oldcol)
 {
     TScreen *screen = TScreenOf(xw);
-    LineData *ptrs;
     ScrnBuf oldBufHead;
     ScrnBuf newBufHead;
     Char *newBufData;
@@ -433,12 +432,6 @@
     Char *oldBufData;
     int move_down = 0, move_up = 0;
 
-    /* save/restore row-flags */
-    RowData *saveFlags;
-    int saveFlagLo = -1;
-    int saveFlagHi = -1;
-    unsigned jump = scrnHeadSize(screen, 1);
-
     if (sbuf == NULL || *sbuf == NULL) {
 	return 0;
     }
@@ -448,30 +441,6 @@
     TRACE(("Reallocate %dx%d -> %dx%d\n", oldrow, oldcol, nrow, ncol));
 
     /*
-     * Save the row flags, to reapply after calling setupLineData.
-     */
-    saveFlags = TypeCallocN(RowData, nrow + oldrow);
-    if (saveFlags != NULL) {
-	int j;
-
-	ptrs = (LineData *) (*sbuf);
-	for (j = 0; j < (int) oldrow; ++j) {
-	    RowData thisFlag = ptrs->bufHead;
-	    if (GetLineFlags(ptrs) != 0) {
-		if (saveFlagLo < 0)
-		    saveFlagLo = j;
-		saveFlagHi = j;
-		saveFlags[j] = thisFlag;
-	    }
-	    ptrs = LineDataAddr(ptrs, jump);
-	}
-	if (saveFlagHi < 0) {
-	    free(saveFlags);
-	    saveFlags = 0;
-	}
-    }
-
-    /*
      * realloc sbuf, the pointers to all the lines.
      * If the screen shrinks, remove lines off the top of the buffer
      * if resizeGravity resource says to do so.
@@ -530,27 +499,6 @@
 	);
     free(oldBufHead);
 
-    if (saveFlags != NULL) {
-	int j, k;
-	int adjust = 0;
-
-	if (move_down) {
-	    adjust = move_down;
-	} else if (move_up) {
-	    adjust = -move_up;
-	}
-
-	ptrs = LineDataAddr(newBufHead, jump * (unsigned) (saveFlagLo + adjust));
-	for (j = saveFlagLo; j <= saveFlagHi; ++j) {
-	    k = j + adjust;
-	    if (k >= 0 && k < (int) nrow) {
-		ptrs->bufHead = saveFlags[j];
-	    }
-	    ptrs = LineDataAddr(ptrs, jump);
-	}
-	free(saveFlags);
-    }
-
     /* Now free the old data */
     free(oldBufData);
 
