From: Owen Dunn Date: Wed, 10 Mar 2004 17:11:12 +0000 (+0000) Subject: Make `Copy all to Clipboard' copy all non-empty lines from the X-Git-Tag: 0.55~76 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=e4f30d3b7a9f19cbe6e26a42f442b7f0893e951a;p=PuTTY.git Make `Copy all to Clipboard' copy all non-empty lines from the scrollback and the terminal to the clipboard, rather than just the content before the cursor. Should fix copyall-to-cursor. [originally from svn r3929] --- diff --git a/terminal.c b/terminal.c index cb00ea6e..083b0fb4 100644 --- a/terminal.c +++ b/terminal.c @@ -3799,9 +3799,13 @@ static void clipme(Terminal *term, pos top, pos bottom, int rect, int desel) void term_copyall(Terminal *term) { pos top; + pos bottom; + tree234 *screen = term->screen; top.y = -sblines(term); top.x = 0; - clipme(term, top, term->curs, 0, TRUE); + bottom.y = find_last_nonempty_line(term, screen); + bottom.x = term->cols; + clipme(term, top, bottom, 0, TRUE); } /*