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.396 by root, Wed Nov 2 10:53:12 2011 UTC vs.
Revision 1.400 by sf-exg, Tue Nov 15 02:24:25 2011 UTC

2690 * CHARACTER SELECTION * 2690 * CHARACTER SELECTION *
2691 * ------------------------------------------------------------------------- */ 2691 * ------------------------------------------------------------------------- */
2692void 2692void
2693rxvt_term::selection_check (int check_more) NOTHROW 2693rxvt_term::selection_check (int check_more) NOTHROW
2694{ 2694{
2695 row_col_t pos;
2696
2697 if (!selection.op) 2695 if (!selection.op)
2698 return; 2696 return;
2699 2697
2698 row_col_t pos;
2700 pos.row = pos.col = 0; 2699 pos.row = pos.col = 0;
2700
2701 if (!IN_RANGE_EXC (selection.beg.row, top_row, nrow) 2701 if (!IN_RANGE_EXC (selection.beg.row, top_row, nrow)
2702 || !IN_RANGE_EXC (selection.mark.row, top_row, nrow) 2702 || !IN_RANGE_EXC (selection.mark.row, top_row, nrow)
2703 || !IN_RANGE_EXC (selection.end.row, top_row, nrow) 2703 || !IN_RANGE_EXC (selection.end.row, top_row, nrow)
2704 || (check_more == 1 2704 || (check_more == 1
2705 && current_screen == selection.screen 2705 && current_screen == selection.screen
2707 && ROWCOL_IS_BEFORE (screen.cur, selection.end)) 2707 && ROWCOL_IS_BEFORE (screen.cur, selection.end))
2708 || (check_more == 2 2708 || (check_more == 2
2709 && ROWCOL_IS_BEFORE (selection.beg, pos) 2709 && ROWCOL_IS_BEFORE (selection.beg, pos)
2710 && ROWCOL_IS_AFTER (selection.end, pos)) 2710 && ROWCOL_IS_AFTER (selection.end, pos))
2711 || (check_more == 3 2711 || (check_more == 3
2712 && ROWCOL_IS_AFTER (selection.end, pos)) 2712 && ROWCOL_IS_AFTER (selection.end, pos)))
2713 || (check_more == 4 /* screen width change */
2714 && (selection.beg.row != selection.end.row
2715 || selection.end.col > ncol)))
2716 CLEAR_ALL_SELECTION (); 2713 CLEAR_ALL_SELECTION ();
2717} 2714}
2718 2715
2719/* ------------------------------------------------------------------------- */ 2716/* ------------------------------------------------------------------------- */
2720/* 2717/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines