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.193 by root, Thu Dec 22 19:39:29 2005 UTC vs.
Revision 1.195 by root, Mon Dec 26 23:02:34 2005 UTC

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 < ncol ? llen : MOD (llen - 1, ncol) + 1;
357 printf ("qline->l %d = llen %d < ncol %d ? %d : MOD %d\n", qline->l,llen,ncol,llen,MOD (llen - 1, ncol) + 1);//D
357 scr_blank_line (*qline, qline->l, ncol - qline->l, DEFAULT_RSTYLE); 358 scr_blank_line (*qline, qline->l, ncol - qline->l, DEFAULT_RSTYLE);
358 } 359 }
359 while (p != pend && q > 0); 360 while (p != pend && q > 0);
360 361
361 term_start = total_rows - nrow; 362 term_start = total_rows - nrow;
620 { 621 {
621 selection.beg.row -= count; 622 selection.beg.row -= count;
622 selection.end.row -= count; 623 selection.end.row -= count;
623 selection.mark.row -= count; 624 selection.mark.row -= count;
624 625
625 selection_check (0); 626 if (selection.beg.row < -nsaved
627 || selection.end.row < -nsaved
628 || selection.mark.row < -nsaved)
629 {
630 CLEAR_ALL_SELECTION ();
631 selection.op = SELECTION_CLEAR;
632 }
626 } 633 }
627 634
628 for (int i = count; i--; ) 635 for (int i = count; i--; )
636 {
637 ROW(row2 - i).l = 0;
629 scr_blank_screen_mem (ROW(row2 - i), rstyle); 638 scr_blank_screen_mem (ROW(row2 - i), rstyle);
639 }
630 640
631 if ((options & Opt_scrollWithBuffer) 641 if ((options & Opt_scrollWithBuffer)
632 && view_start != 0 642 && view_start != 0
633 && view_start != saveLines) 643 && view_start != saveLines)
634 scr_page (UP, count); 644 scr_page (UP, count);
635 } 645 }
636 else 646 else
637 { 647 {
638 if (selection.op && current_screen == selection.screen) 648 if (selection.op && current_screen == selection.screen)
639 { 649 {
640 int i = selection.beg.row; 650 if ((selection.beg.row < row1 && selection.end.row > row1)
641 int j = selection.end.row; 651 || (selection.beg.row < row2 && selection.end.row > row2)
642
643 if ((i < row1 && j > row1)
644 || (i < row2 && j > row2)
645 || (i - count < row1 && i >= row1) 652 || (selection.beg.row - count < row1 && selection.beg.row >= row1)
646 || (i - count > row2 && i <= row2) 653 || (selection.beg.row - count > row2 && selection.beg.row <= row2)
647 || (j - count < row1 && j >= row1) 654 || (selection.end.row - count < row1 && selection.end.row >= row1)
648 || (j - count > row2 && j <= row2)) 655 || (selection.end.row - count > row2 && selection.end.row <= row2))
649 { 656 {
650 CLEAR_ALL_SELECTION (); 657 CLEAR_ALL_SELECTION ();
651 selection.op = SELECTION_CLEAR; /* XXX: too aggressive? */ 658 selection.op = SELECTION_CLEAR;
652 } 659 }
653 else if (j >= row1 && j <= row2) 660 else if (selection.end.row >= row1 && selection.end.row <= row2)
654 { 661 {
655 /* move selected region too */ 662 /* move selected region too */
656 selection.beg.row -= count; 663 selection.beg.row -= count;
657 selection.end.row -= count; 664 selection.end.row -= count;
658 selection.mark.row -= count; 665 selection.mark.row -= count;
730 { 737 {
731 c = *str++; 738 c = *str++;
732 739
733 if (c < 0x20) 740 if (c < 0x20)
734 if (c == C0_LF) 741 if (c == C0_LF)
735 { 742 {
736 if (!line->is_longer ()) /* XXX: think about this */ 743 if (!line->is_longer ()) /* XXX: think about this */
737 max_it (line->l, screen.cur.col); 744 max_it (line->l, screen.cur.col);
738 745
739 screen.flags &= ~Screen_WrapNext; 746 screen.flags &= ~Screen_WrapNext;
740 747
1280 XChangeGC (display->display, gc, GCForeground, &gcvalue); 1287 XChangeGC (display->display, gc, GCForeground, &gcvalue);
1281 } 1288 }
1282 1289
1283 for (; num--; row++) 1290 for (; num--; row++)
1284 { 1291 {
1292 ROW (row).l = 0;
1285 scr_blank_screen_mem (ROW (row), rstyle); 1293 scr_blank_screen_mem (ROW (row), rstyle);
1286 ROW (row).l = 0;
1287 scr_blank_line (drawn_buf [row], 0, ncol, ren); 1294 scr_blank_line (drawn_buf [row], 0, ncol, ren);
1288 } 1295 }
1289} 1296}
1290 1297
1291#if ENABLE_FRILLS 1298#if ENABLE_FRILLS
2449 row = selection.beg.row; 2456 row = selection.beg.row;
2450 } 2457 }
2451 else 2458 else
2452 { 2459 {
2453 col = 0; 2460 col = 0;
2454 row = view_start; 2461 row = -view_start;
2455 } 2462 }
2456 2463
2457 for (; row < min (selection.end.row, view_end); row++, col = 0) 2464 for (; row < min (selection.end.row, view_end); row++, col = 0)
2458 for (rend_t *srp = ROW(row).r; col < ncol; col++) 2465 for (rend_t *srp = ROW(row).r; col < ncol; col++)
2459 srp[col] ^= RS_RVid; 2466 srp[col] ^= RS_RVid;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines