Stop in the right place so all the lines selected are copied. Reported by Kalle

Olavi Niemitalo, thanks.
This commit is contained in:
Nicholas Marriott 2009-07-09 15:02:00 +00:00
parent 29f9d5f335
commit 24e1327d0d

View File

@ -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);
} }