for ( i = screen->max_col, ch = SCRN_BUF_ATTRS(screen, (row + screen->topline)) + i ; i >= 0 && !(*ch & CHARDRAWN) ; ch--, i--) ;
if ((row += screen->topline) + screen->savedlines >= 0) { for ( i = screen->max_col, ch = SCRN_BUF_ATTRS(screen, row) + i ; i >= 0 && !(*ch & CHARDRAWN) ; ch--, i--) ; #if OPT_DEC_CHRSET if (CSET_DOUBLE(SCRN_BUF_CSETS(screen, row)[0])) { i *= 2; } #endif } else { i = -1; }
LastTextCol(register int row){	register TScreen *screen =  &term->screen;	register int i;	register Char *ch;	for ( i = screen->max_col,	        ch = SCRN_BUF_ATTRS(screen, (row + screen->topline)) + i ;	      i >= 0 && !(*ch & CHARDRAWN) ;	      ch--, i--)	    ;	return(i);}