ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/screen.C
(Generate patch)

Comparing rxvt-unicode/src/screen.C (file contents):
Revision 1.194 by root, Mon Dec 26 21:30:04 2005 UTC vs.
Revision 1.196 by root, Mon Dec 26 23:12:59 2005 UTC

351 lofs += len; 351 lofs += len;
352 qcol += len; 352 qcol += len;
353 } 353 }
354 } 354 }
355 355
356 qline->l = llen < ncol ? llen : MOD (llen - 1, ncol) + 1; 356 qline->l = llen ? MOD (llen - 1, ncol) + 1 : 0;
357#ifdef DEBUG_STRICT //TODO//FIXME//TEMPORARY
358 if (qline->l < 0)
359 {
360 fprintf (stderr, "ERROR, PLEASE REPORT to rxvt-unicode@plan9.de: qline->l %d = llen %d < ncol %d ? %d : MOD %d\n", qline->l,llen,ncol,llen,MOD (llen - 1, ncol) + 1);//D
361 qline->l = 0;
362 }
363#endif
357 scr_blank_line (*qline, qline->l, ncol - qline->l, DEFAULT_RSTYLE); 364 scr_blank_line (*qline, qline->l, ncol - qline->l, DEFAULT_RSTYLE);
358 } 365 }
359 while (p != pend && q > 0); 366 while (p != pend && q > 0);
360 367
361 term_start = total_rows - nrow; 368 term_start = total_rows - nrow;
630 selection.op = SELECTION_CLEAR; 637 selection.op = SELECTION_CLEAR;
631 } 638 }
632 } 639 }
633 640
634 for (int i = count; i--; ) 641 for (int i = count; i--; )
642 {
643 ROW(row2 - i).l = 0;
635 scr_blank_screen_mem (ROW(row2 - i), rstyle); 644 scr_blank_screen_mem (ROW(row2 - i), rstyle);
645 }
636 646
637 if ((options & Opt_scrollWithBuffer) 647 if ((options & Opt_scrollWithBuffer)
638 && view_start != 0 648 && view_start != 0
639 && view_start != saveLines) 649 && view_start != saveLines)
640 scr_page (UP, count); 650 scr_page (UP, count);
733 { 743 {
734 c = *str++; 744 c = *str++;
735 745
736 if (c < 0x20) 746 if (c < 0x20)
737 if (c == C0_LF) 747 if (c == C0_LF)
738 { 748 {
739 if (!line->is_longer ()) /* XXX: think about this */ 749 if (!line->is_longer ()) /* XXX: think about this */
740 max_it (line->l, screen.cur.col); 750 max_it (line->l, screen.cur.col);
741 751
742 screen.flags &= ~Screen_WrapNext; 752 screen.flags &= ~Screen_WrapNext;
743 753
1283 XChangeGC (display->display, gc, GCForeground, &gcvalue); 1293 XChangeGC (display->display, gc, GCForeground, &gcvalue);
1284 } 1294 }
1285 1295
1286 for (; num--; row++) 1296 for (; num--; row++)
1287 { 1297 {
1298 ROW (row).l = 0;
1288 scr_blank_screen_mem (ROW (row), rstyle); 1299 scr_blank_screen_mem (ROW (row), rstyle);
1289 ROW (row).l = 0;
1290 scr_blank_line (drawn_buf [row], 0, ncol, ren); 1300 scr_blank_line (drawn_buf [row], 0, ncol, ren);
1291 } 1301 }
1292} 1302}
1293 1303
1294#if ENABLE_FRILLS 1304#if ENABLE_FRILLS
2452 row = selection.beg.row; 2462 row = selection.beg.row;
2453 } 2463 }
2454 else 2464 else
2455 { 2465 {
2456 col = 0; 2466 col = 0;
2457 row = view_start; 2467 row = -view_start;
2458 } 2468 }
2459 2469
2460 for (; row < min (selection.end.row, view_end); row++, col = 0) 2470 for (; row < min (selection.end.row, view_end); row++, col = 0)
2461 for (rend_t *srp = ROW(row).r; col < ncol; col++) 2471 for (rend_t *srp = ROW(row).r; col < ncol; col++)
2462 srp[col] ^= RS_RVid; 2472 srp[col] ^= RS_RVid;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines