mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-09 01:35:20 +01: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
bf0f56d04e
commit
d4a143a425
@ -1,4 +1,4 @@
|
||||
/* $Id: window-copy.c,v 1.61 2009-07-02 16:23:54 nicm Exp $ */
|
||||
/* $Id: window-copy.c,v 1.62 2009-07-12 16:56:56 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -443,7 +443,7 @@ window_copy_copy_selection(struct window_pane *wp, struct client *c)
|
||||
xx = window_copy_find_length(wp, sy);
|
||||
window_copy_copy_line(wp, &buf, &off, sy, sx, xx);
|
||||
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);
|
||||
window_copy_copy_line(wp, &buf, &off, i, 0, xx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user