ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/screen.C
(Generate patch)

Comparing rxvt-unicode/src/screen.C (file contents):
Revision 1.462 by root, Thu Jun 17 11:01:57 2021 UTC vs.
Revision 1.463 by root, Sat Jul 3 04:04:13 2021 UTC

304 304
305 int p = MOD (term_start + prev_nrow, prev_total_rows); // previous row 305 int p = MOD (term_start + prev_nrow, prev_total_rows); // previous row
306 int pend = MOD (term_start + top_row , prev_total_rows); 306 int pend = MOD (term_start + top_row , prev_total_rows);
307 int q = total_rows; // rewrapped row 307 int q = total_rows; // rewrapped row
308 308
309 if (top_row) 309 if ((rewrap_always || top_row) && !rewrap_never)
310 { 310 {
311 // Re-wrap lines. This is rather ugly, possibly because I am too dumb 311 // Re-wrap lines. This is rather ugly, possibly because I am too dumb
312 // to come up with a lean and mean algorithm. 312 // to come up with a lean and mean algorithm.
313 // TODO: maybe optimise when width didn't change 313 // TODO: maybe optimise when width didn't change
314 314
2714 /* convert normal newline chars into common keyboard Return key sequence */ 2714 /* convert normal newline chars into common keyboard Return key sequence */
2715 for (unsigned int i = 0; i < len; i++) 2715 for (unsigned int i = 0; i < len; i++)
2716 if (data[i] == C0_LF) 2716 if (data[i] == C0_LF)
2717 data[i] = C0_CR; 2717 data[i] = C0_CR;
2718 2718
2719 if (priv_modes & PrivMode_BracketPaste) 2719 #if ENABLE_FRILLS
2720 if ((priv_modes & PrivMode_BracketPaste) && !option (Opt_disablePasteBrackets))
2720 tt_printf ("\x1b[200~"); 2721 tt_printf ("\x1b[200~");
2722 #endif
2721 2723
2722 tt_write (data, len); 2724 tt_write (data, len);
2723 2725
2724 if (priv_modes & PrivMode_BracketPaste) 2726 #if ENABLE_FRILLS
2727 if ((priv_modes & PrivMode_BracketPaste) && !option (Opt_disablePasteBrackets))
2725 tt_printf ("\x1b[201~"); 2728 tt_printf ("\x1b[201~");
2729 #endif
2726} 2730}
2727 2731
2728void 2732void
2729rxvt_term::paste (char *data, unsigned int len) noexcept 2733rxvt_term::paste (char *data, unsigned int len) noexcept
2730{ 2734{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines