From c4d5989a4ef03db0477446ee004ef431be268286 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 18 Jan 2009 13:20:46 +0000 Subject: [PATCH] This is fixed. --- window-copy.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/window-copy.c b/window-copy.c index 89b909ab..c8b614f6 100644 --- a/window-copy.c +++ b/window-copy.c @@ -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 @@ -401,11 +401,6 @@ 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) { - /* - * 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++) { xx = window_copy_find_length(wp, i); window_copy_copy_line(wp, &buf, &off, i, 0, xx);