mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
This is fixed.
This commit is contained in:
parent
efb62d423b
commit
c4d5989a4e
@ -1,4 +1,4 @@
|
|||||||
/* $Id: window-copy.c,v 1.39 2009-01-12 00:52:37 nicm Exp $ */
|
/* $Id: window-copy.c,v 1.40 2009-01-18 13:20:46 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -401,11 +401,6 @@ 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) {
|
||||||
/*
|
|
||||||
* XXX gcc -O2 completely screws this up and either
|
|
||||||
* causes a segfault or exits the loop after one
|
|
||||||
* iteration.
|
|
||||||
*/
|
|
||||||
for (i = sy + 1; i < ey - 1; i++) {
|
for (i = sy + 1; i < ey - 1; 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…
x
Reference in New Issue
Block a user