… | |
… | |
2678 | |
2678 | |
2679 | void |
2679 | void |
2680 | rxvt_term::selection_changed () NOTHROW |
2680 | rxvt_term::selection_changed () NOTHROW |
2681 | { |
2681 | { |
2682 | line_t &r1 = ROW (selection.beg.row); |
2682 | line_t &r1 = ROW (selection.beg.row); |
2683 | while (selection.beg.col > 0 && r1.t [selection.beg.col] == NOCHAR) |
2683 | while (selection.beg.col < r1.l && r1.t [selection.beg.col] == NOCHAR) |
2684 | --selection.beg.col; |
2684 | ++selection.beg.col; |
2685 | |
2685 | |
2686 | line_t &r2 = ROW (selection.end.row); |
2686 | line_t &r2 = ROW (selection.end.row); |
2687 | while (selection.end.col < r2.l && r2.t [selection.end.col] == NOCHAR) |
2687 | while (selection.end.col < r2.l && r2.t [selection.end.col] == NOCHAR) |
2688 | ++selection.end.col; |
2688 | ++selection.end.col; |
2689 | |
2689 | |