scrollback and the terminal to the clipboard, rather than just the
content before the cursor. Should fix copyall-to-cursor.
git-svn-id: svn://svn.tartarus.org/sgt/putty@3929
cda61777-01e9-0310-a592-
d414129be87e
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);
}
/*