mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
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]
This commit is contained in:
parent
1c1cbae61c
commit
e4f30d3b7a
@ -3799,9 +3799,13 @@ static void clipme(Terminal *term, pos top, pos bottom, int rect, int desel)
|
|||||||
void term_copyall(Terminal *term)
|
void term_copyall(Terminal *term)
|
||||||
{
|
{
|
||||||
pos top;
|
pos top;
|
||||||
|
pos bottom;
|
||||||
|
tree234 *screen = term->screen;
|
||||||
top.y = -sblines(term);
|
top.y = -sblines(term);
|
||||||
top.x = 0;
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user