X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=terminal.c;h=113edc4fc60e346f8f8d9d698bb083c6a39b14f4;hb=0cc6fb8bfea07360afeac83ba67aceffb56499c8;hp=171db0394120ad948c8be07587258c1f3b69a3f3;hpb=329087e2da70e114026371f7d3d831d7722a38cc;p=PuTTY.git diff --git a/terminal.c b/terminal.c index 171db039..113edc4f 100644 --- a/terminal.c +++ b/terminal.c @@ -6002,6 +6002,13 @@ void term_mouse(Terminal *term, Mouse_Button braw, Mouse_Button bcooked, request_paste(term->frontend); } + /* + * Since terminal output is suppressed during drag-selects, we + * should make sure to write any pending output if one has just + * finished. + */ + if (term->selstate != DRAGGING) + term_out(term); term_update(term); } @@ -6101,6 +6108,14 @@ void term_deselect(Terminal *term) { deselect(term); term_update(term); + + /* + * Since terminal output is suppressed during drag-selects, we + * should make sure to write any pending output if one has just + * finished. + */ + if (term->selstate != DRAGGING) + term_out(term); } int term_ldisc(Terminal *term, int option)