mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 11:18:48 +00:00
Stop in the right place so all the lines selected are copied. Reported by Kalle
Olavi Niemitalo, thanks.
This commit is contained in:
parent
29f9d5f335
commit
24e1327d0d
@ -443,7 +443,7 @@ window_copy_copy_selection(struct window_pane *wp, struct client *c)
|
|||||||
xx = window_copy_find_length(wp, sy);
|
xx = window_copy_find_length(wp, sy);
|
||||||
window_copy_copy_line(wp, &buf, &off, sy, sx, xx);
|
window_copy_copy_line(wp, &buf, &off, sy, sx, xx);
|
||||||
if (ey - sy > 1) {
|
if (ey - sy > 1) {
|
||||||
for (i = sy + 1; i < ey - 1; i++) {
|
for (i = sy + 1; i < ey; i++) {
|
||||||
xx = window_copy_find_length(wp, i);
|
xx = window_copy_find_length(wp, i);
|
||||||
window_copy_copy_line(wp, &buf, &off, i, 0, xx);
|
window_copy_copy_line(wp, &buf, &off, i, 0, xx);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user