mirror of
https://github.com/tmux/tmux.git
synced 2024-11-06 02:48:49 +00:00
Merge branch 'master' of github.com:tmux/tmux
This commit is contained in:
commit
5fec6c598e
@ -1508,10 +1508,17 @@ window_copy_update_selection(struct window_pane *wp, int may_redraw)
|
|||||||
* of lines, and redraw just past that in both directions
|
* of lines, and redraw just past that in both directions
|
||||||
*/
|
*/
|
||||||
cy = data->cy;
|
cy = data->cy;
|
||||||
if (sy < cy)
|
if (data->cursordrag == CURSORDRAG_ENDSEL) {
|
||||||
window_copy_redraw_lines(wp, sy, cy - sy + 1);
|
if (sy < cy)
|
||||||
else
|
window_copy_redraw_lines(wp, sy, cy - sy + 1);
|
||||||
window_copy_redraw_lines(wp, cy, sy - cy + 1);
|
else
|
||||||
|
window_copy_redraw_lines(wp, cy, sy - cy + 1);
|
||||||
|
} else {
|
||||||
|
if (endsy < cy)
|
||||||
|
window_copy_redraw_lines(wp, endsy, cy - endsy + 1);
|
||||||
|
else
|
||||||
|
window_copy_redraw_lines(wp, cy, endsy - cy + 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (1);
|
return (1);
|
||||||
|
Loading…
Reference in New Issue
Block a user