… | |
… | |
688 | { |
688 | { |
689 | selection.beg.row -= count; |
689 | selection.beg.row -= count; |
690 | selection.end.row -= count; |
690 | selection.end.row -= count; |
691 | selection.mark.row -= count; |
691 | selection.mark.row -= count; |
692 | |
692 | |
693 | if (selection.beg.row < top_row |
693 | selection_check (0); |
694 | || selection.end.row < top_row |
|
|
695 | || selection.mark.row < top_row) |
|
|
696 | { |
|
|
697 | CLEAR_ALL_SELECTION (); |
|
|
698 | selection.op = SELECTION_CLEAR; |
|
|
699 | } |
|
|
700 | } |
694 | } |
701 | |
695 | |
702 | // finally move the view window, if desired |
696 | // finally move the view window, if desired |
703 | if (option (Opt_scrollWithBuffer) |
697 | if (option (Opt_scrollWithBuffer) |
704 | && view_start != 0 |
698 | && view_start != 0 |
… | |
… | |
2563 | { |
2557 | { |
2564 | if (transparent) |
2558 | if (transparent) |
2565 | XSetWindowBackgroundPixmap (dpy, scrollBar.win, ParentRelative); |
2559 | XSetWindowBackgroundPixmap (dpy, scrollBar.win, ParentRelative); |
2566 | else |
2560 | else |
2567 | XSetWindowBackground (dpy, scrollBar.win, pix_colors[Color_border]); |
2561 | XSetWindowBackground (dpy, scrollBar.win, pix_colors[Color_border]); |
2568 | scrollBar.state = STATE_IDLE; |
2562 | scrollBar.state = SB_STATE_IDLE; |
2569 | scrollBar.show (0); |
2563 | scrollBar.show (0); |
2570 | } |
2564 | } |
2571 | |
2565 | |
2572 | if (refresh) |
2566 | if (refresh) |
2573 | { |
2567 | { |
… | |
… | |
2717 | || (check_more == 3 |
2711 | || (check_more == 3 |
2718 | && ROWCOL_IS_AFTER (selection.end, pos)) |
2712 | && ROWCOL_IS_AFTER (selection.end, pos)) |
2719 | || (check_more == 4 /* screen width change */ |
2713 | || (check_more == 4 /* screen width change */ |
2720 | && (selection.beg.row != selection.end.row |
2714 | && (selection.beg.row != selection.end.row |
2721 | || selection.end.col > ncol))) |
2715 | || selection.end.col > ncol))) |
2722 | CLEAR_SELECTION (); |
2716 | CLEAR_ALL_SELECTION (); |
2723 | } |
2717 | } |
2724 | |
2718 | |
2725 | /* ------------------------------------------------------------------------- */ |
2719 | /* ------------------------------------------------------------------------- */ |
2726 | /* |
2720 | /* |
2727 | * Paste a selection direct to the command fd |
2721 | * Paste a selection direct to the command fd |