… | |
… | |
283 | // to come up with a lean and mean algorithm. |
283 | // to come up with a lean and mean algorithm. |
284 | |
284 | |
285 | row_col_t ocur = screen.cur; |
285 | row_col_t ocur = screen.cur; |
286 | ocur.row = MOD (term_start + ocur.row, prev_total_rows); |
286 | ocur.row = MOD (term_start + ocur.row, prev_total_rows); |
287 | |
287 | |
288 | while (p != pend && q > 0) |
288 | do |
289 | { |
289 | { |
290 | p = MOD (p - 1, prev_total_rows); |
290 | p = MOD (p - 1, prev_total_rows); |
291 | #ifdef DEBUG_STRICT |
291 | #ifdef DEBUG_STRICT |
292 | assert (old_buf [MOD (p, prev_total_rows)].t); |
292 | assert (old_buf [MOD (p, prev_total_rows)].t); |
293 | #endif |
293 | #endif |
… | |
… | |
329 | int prow = lofs / prev_ncol; |
329 | int prow = lofs / prev_ncol; |
330 | int pcol = lofs % prev_ncol; |
330 | int pcol = lofs % prev_ncol; |
331 | |
331 | |
332 | prow = MOD (p + prow, prev_total_rows); |
332 | prow = MOD (p + prow, prev_total_rows); |
333 | |
333 | |
334 | // we only adjust the cursor _row_, as this seems to upset |
334 | // we only adjust the cursor _row_ and put it into |
|
|
335 | // the topmost line of "long line" it was in, as |
335 | // applications/shells/readline least. |
336 | // this seems to upset applications/shells/readline |
|
|
337 | // least. |
336 | if (prow == ocur.row) |
338 | if (prow == ocur.row) |
337 | screen.cur.row = qrow - (total_rows - nrow); |
339 | screen.cur.row = q - (total_rows - nrow); |
338 | |
340 | |
339 | line_t &pline = old_buf [prow]; |
341 | line_t &pline = old_buf [prow]; |
340 | |
342 | |
341 | int len = min (min (prev_ncol - pcol, ncol - qcol), llen - lofs); |
343 | int len = min (min (prev_ncol - pcol, ncol - qcol), llen - lofs); |
342 | |
344 | |
… | |
… | |
349 | lofs += len; |
351 | lofs += len; |
350 | qcol += len; |
352 | qcol += len; |
351 | } |
353 | } |
352 | } |
354 | } |
353 | |
355 | |
354 | qline->l = llen < ncol ? llen : MOD (llen - 1, ncol) + 1; |
356 | qline->l = llen ? MOD (llen - 1, ncol) + 1 : 0; |
|
|
357 | #ifdef DEBUG_STRICT //TODO//FIXME//TEMPORARY |
|
|
358 | if (qline->l < 0) |
|
|
359 | { |
|
|
360 | fprintf (stderr, "ERROR, PLEASE REPORT to rxvt-unicode@plan9.de: qline->l %d = llen %d < ncol %d ? %d : MOD %d\n", qline->l,llen,ncol,llen,MOD (llen - 1, ncol) + 1);//D |
|
|
361 | qline->l = 0; |
|
|
362 | } |
|
|
363 | #endif |
355 | scr_blank_line (*qline, qline->l, ncol - qline->l, DEFAULT_RSTYLE); |
364 | scr_blank_line (*qline, qline->l, ncol - qline->l, DEFAULT_RSTYLE); |
356 | } |
365 | } |
|
|
366 | while (p != pend && q > 0); |
357 | |
367 | |
358 | term_start = total_rows - nrow; |
368 | term_start = total_rows - nrow; |
359 | view_start = 0; |
|
|
360 | nsaved = term_start - q; |
369 | nsaved = term_start - q; |
361 | |
370 | |
362 | // make sure all terminal lines exist |
371 | // make sure all terminal lines exist |
363 | while (nsaved < 0) |
372 | while (nsaved < 0) |
364 | scr_blank_screen_mem (ROW (-++nsaved), DEFAULT_RSTYLE); |
373 | scr_blank_screen_mem (ROW (-++nsaved), DEFAULT_RSTYLE); |
… | |
… | |
381 | { |
390 | { |
382 | row_buf [row].clear (); scr_blank_screen_mem (row_buf [row], DEFAULT_RSTYLE); |
391 | row_buf [row].clear (); scr_blank_screen_mem (row_buf [row], DEFAULT_RSTYLE); |
383 | } |
392 | } |
384 | |
393 | |
385 | term_start = 0; |
394 | term_start = 0; |
386 | view_start = 0; |
|
|
387 | } |
395 | } |
388 | |
396 | |
389 | #ifdef DEBUG_STRICT |
397 | #ifdef DEBUG_STRICT //TODO: remove |
390 | for (int i = -nsaved; i < nrow; i++) |
398 | for (int i = -nsaved; i < nrow; i++) |
391 | assert (ROW (i).t); |
399 | assert (ROW (i).t); |
392 | #endif |
400 | #endif |
393 | |
401 | |
394 | free (old_buf); |
402 | free (old_buf); |
… | |
… | |
619 | { |
627 | { |
620 | selection.beg.row -= count; |
628 | selection.beg.row -= count; |
621 | selection.end.row -= count; |
629 | selection.end.row -= count; |
622 | selection.mark.row -= count; |
630 | selection.mark.row -= count; |
623 | |
631 | |
624 | selection_check (0); |
632 | if (selection.beg.row < -nsaved |
|
|
633 | || selection.end.row < -nsaved |
|
|
634 | || selection.mark.row < -nsaved) |
|
|
635 | { |
|
|
636 | CLEAR_ALL_SELECTION (); |
|
|
637 | selection.op = SELECTION_CLEAR; |
|
|
638 | } |
625 | } |
639 | } |
626 | |
640 | |
627 | for (int i = count; i--; ) |
641 | for (int i = count; i--; ) |
|
|
642 | { |
|
|
643 | ROW(row2 - i).l = 0; |
628 | scr_blank_screen_mem (ROW(row2 - i), rstyle); |
644 | scr_blank_screen_mem (ROW(row2 - i), rstyle); |
|
|
645 | } |
629 | |
646 | |
630 | if ((options & Opt_scrollWithBuffer) |
647 | if ((options & Opt_scrollWithBuffer) |
631 | && view_start != 0 |
648 | && view_start != 0 |
632 | && view_start != saveLines) |
649 | && view_start != saveLines) |
633 | scr_page (UP, count); |
650 | scr_page (UP, count); |
634 | } |
651 | } |
635 | else |
652 | else |
636 | { |
653 | { |
637 | if (selection.op && current_screen == selection.screen) |
654 | if (selection.op && current_screen == selection.screen) |
638 | { |
655 | { |
639 | int i = selection.beg.row; |
656 | if ((selection.beg.row < row1 && selection.end.row > row1) |
640 | int j = selection.end.row; |
657 | || (selection.beg.row < row2 && selection.end.row > row2) |
641 | |
|
|
642 | if ((i < row1 && j > row1) |
|
|
643 | || (i < row2 && j > row2) |
|
|
644 | || (i - count < row1 && i >= row1) |
658 | || (selection.beg.row - count < row1 && selection.beg.row >= row1) |
645 | || (i - count > row2 && i <= row2) |
659 | || (selection.beg.row - count > row2 && selection.beg.row <= row2) |
646 | || (j - count < row1 && j >= row1) |
660 | || (selection.end.row - count < row1 && selection.end.row >= row1) |
647 | || (j - count > row2 && j <= row2)) |
661 | || (selection.end.row - count > row2 && selection.end.row <= row2)) |
648 | { |
662 | { |
649 | CLEAR_ALL_SELECTION (); |
663 | CLEAR_ALL_SELECTION (); |
650 | selection.op = SELECTION_CLEAR; /* XXX: too aggressive? */ |
664 | selection.op = SELECTION_CLEAR; |
651 | } |
665 | } |
652 | else if (j >= row1 && j <= row2) |
666 | else if (selection.end.row >= row1 && selection.end.row <= row2) |
653 | { |
667 | { |
654 | /* move selected region too */ |
668 | /* move selected region too */ |
655 | selection.beg.row -= count; |
669 | selection.beg.row -= count; |
656 | selection.end.row -= count; |
670 | selection.end.row -= count; |
657 | selection.mark.row -= count; |
671 | selection.mark.row -= count; |
… | |
… | |
692 | if (len <= 0) /* sanity */ |
706 | if (len <= 0) /* sanity */ |
693 | return; |
707 | return; |
694 | |
708 | |
695 | unsigned char checksel; |
709 | unsigned char checksel; |
696 | unicode_t c; |
710 | unicode_t c; |
697 | int row, last_col; |
711 | int last_col; |
698 | const unicode_t *strend = str + len; |
712 | const unicode_t *strend = str + len; |
699 | |
713 | |
700 | want_refresh = 1; |
714 | want_refresh = 1; |
701 | ZERO_SCROLLBACK (); |
715 | ZERO_SCROLLBACK (); |
702 | last_col = ncol; |
716 | last_col = ncol; |
… | |
… | |
717 | #ifdef DEBUG_STRICT |
731 | #ifdef DEBUG_STRICT |
718 | assert (screen.cur.col < last_col); |
732 | assert (screen.cur.col < last_col); |
719 | assert (screen.cur.row < nrow |
733 | assert (screen.cur.row < nrow |
720 | && screen.cur.row >= -nsaved); |
734 | && screen.cur.row >= -nsaved); |
721 | #endif |
735 | #endif |
722 | row = screen.cur.row; |
736 | int row = screen.cur.row; |
723 | |
737 | |
724 | checksel = selection.op && current_screen == selection.screen ? 1 : 0; |
738 | checksel = selection.op && current_screen == selection.screen ? 1 : 0; |
725 | |
739 | |
726 | line_t *line = &ROW(row); |
740 | line_t *line = &ROW(row); |
727 | |
741 | |
… | |
… | |
729 | { |
743 | { |
730 | c = *str++; |
744 | c = *str++; |
731 | |
745 | |
732 | if (c < 0x20) |
746 | if (c < 0x20) |
733 | if (c == C0_LF) |
747 | if (c == C0_LF) |
734 | { |
748 | { |
735 | if (!line->is_longer ()) /* XXX: think about this */ |
749 | if (!line->is_longer ()) /* XXX: think about this */ |
736 | max_it (line->l, screen.cur.col); |
750 | max_it (line->l, screen.cur.col); |
737 | |
751 | |
738 | screen.flags &= ~Screen_WrapNext; |
752 | screen.flags &= ~Screen_WrapNext; |
739 | |
753 | |
… | |
… | |
984 | |
998 | |
985 | if (count == 0) |
999 | if (count == 0) |
986 | return; |
1000 | return; |
987 | else if (count > 0) |
1001 | else if (count > 0) |
988 | { |
1002 | { |
989 | int row = screen.cur.row; |
|
|
990 | |
|
|
991 | line_t &l = ROW(row); |
1003 | line_t &l = ROW(screen.cur.row); |
992 | rend_t base_rend = l.r[i]; |
1004 | rend_t base_rend = l.r[i]; |
993 | ht &= l.t[i] == ' '; |
1005 | ht &= l.t[i] == ' '; |
994 | |
1006 | |
995 | for (; ++i < ncol; ) |
1007 | for (; ++i < ncol; ) |
996 | if (tabs[i]) |
1008 | if (tabs[i]) |
… | |
… | |
1071 | */ |
1083 | */ |
1072 | #if ENABLE_FRILLS |
1084 | #if ENABLE_FRILLS |
1073 | void |
1085 | void |
1074 | rxvt_term::scr_forwardindex () |
1086 | rxvt_term::scr_forwardindex () |
1075 | { |
1087 | { |
1076 | int row; |
|
|
1077 | |
|
|
1078 | if (screen.cur.col < ncol - 1) |
1088 | if (screen.cur.col < ncol - 1) |
1079 | scr_gotorc (0, 1, R_RELATIVE | C_RELATIVE); |
1089 | scr_gotorc (0, 1, R_RELATIVE | C_RELATIVE); |
1080 | else |
1090 | else |
1081 | { |
1091 | { |
1082 | row = screen.cur.row; |
|
|
1083 | |
|
|
1084 | if (ROW(row).is_longer ()) //TODO//FIXME//LEN |
1092 | if (ROW(screen.cur.row).is_longer ()) //TODO//FIXME//LEN |
1085 | ROW(row).l = ncol; |
1093 | ROW(screen.cur.row).l = ncol; |
1086 | |
1094 | |
1087 | scr_gotorc (0, 0, R_RELATIVE); |
1095 | scr_gotorc (0, 0, R_RELATIVE); |
1088 | scr_insdel_chars (1, DELETE); |
1096 | scr_insdel_chars (1, DELETE); |
1089 | scr_gotorc (0, ncol - 1, R_RELATIVE); |
1097 | scr_gotorc (0, ncol - 1, R_RELATIVE); |
1090 | } |
1098 | } |
… | |
… | |
1173 | * XTERM_SEQ: Clear whole line : ESC [ 2 K |
1181 | * XTERM_SEQ: Clear whole line : ESC [ 2 K |
1174 | */ |
1182 | */ |
1175 | void |
1183 | void |
1176 | rxvt_term::scr_erase_line (int mode) |
1184 | rxvt_term::scr_erase_line (int mode) |
1177 | { |
1185 | { |
1178 | unsigned int row, col, num; |
1186 | unsigned int col, num; |
1179 | |
1187 | |
1180 | want_refresh = 1; |
1188 | want_refresh = 1; |
1181 | ZERO_SCROLLBACK (); |
1189 | ZERO_SCROLLBACK (); |
1182 | |
1190 | |
1183 | selection_check (1); |
1191 | selection_check (1); |
1184 | |
1192 | |
1185 | row = screen.cur.row; |
1193 | line_t &line = ROW(screen.cur.row); |
1186 | |
1194 | |
1187 | switch (mode) |
1195 | switch (mode) |
1188 | { |
1196 | { |
1189 | case 0: /* erase to end of line */ |
1197 | case 0: /* erase to end of line */ |
1190 | col = screen.cur.col; |
1198 | col = screen.cur.col; |
1191 | num = ncol - col; |
1199 | num = ncol - col; |
1192 | min_it (ROW(row).l, col); |
1200 | min_it (line.l, col); |
1193 | if (ROWCOL_IN_ROW_AT_OR_AFTER (selection.beg, screen.cur) |
1201 | if (ROWCOL_IN_ROW_AT_OR_AFTER (selection.beg, screen.cur) |
1194 | || ROWCOL_IN_ROW_AT_OR_AFTER (selection.end, screen.cur)) |
1202 | || ROWCOL_IN_ROW_AT_OR_AFTER (selection.end, screen.cur)) |
1195 | CLEAR_SELECTION (); |
1203 | CLEAR_SELECTION (); |
1196 | break; |
1204 | break; |
1197 | case 1: /* erase to beginning of line */ |
1205 | case 1: /* erase to beginning of line */ |
… | |
… | |
1202 | CLEAR_SELECTION (); |
1210 | CLEAR_SELECTION (); |
1203 | break; |
1211 | break; |
1204 | case 2: /* erase whole line */ |
1212 | case 2: /* erase whole line */ |
1205 | col = 0; |
1213 | col = 0; |
1206 | num = ncol; |
1214 | num = ncol; |
1207 | ROW(row).l = 0; |
1215 | line.l = 0; |
1208 | if (selection.beg.row <= screen.cur.row |
1216 | if (selection.beg.row <= screen.cur.row |
1209 | && selection.end.row >= screen.cur.row) |
1217 | && selection.end.row >= screen.cur.row) |
1210 | CLEAR_SELECTION (); |
1218 | CLEAR_SELECTION (); |
1211 | break; |
1219 | break; |
1212 | default: |
1220 | default: |
1213 | return; |
1221 | return; |
1214 | } |
1222 | } |
1215 | |
1223 | |
1216 | scr_blank_line (ROW(row), col, num, rstyle); |
1224 | scr_blank_line (line, col, num, rstyle); |
1217 | } |
1225 | } |
1218 | |
1226 | |
1219 | /* ------------------------------------------------------------------------- */ |
1227 | /* ------------------------------------------------------------------------- */ |
1220 | /* |
1228 | /* |
1221 | * Erase part of whole of the screen |
1229 | * Erase part of whole of the screen |
… | |
… | |
1285 | XChangeGC (display->display, gc, GCForeground, &gcvalue); |
1293 | XChangeGC (display->display, gc, GCForeground, &gcvalue); |
1286 | } |
1294 | } |
1287 | |
1295 | |
1288 | for (; num--; row++) |
1296 | for (; num--; row++) |
1289 | { |
1297 | { |
|
|
1298 | ROW (row).l = 0; |
1290 | scr_blank_screen_mem (ROW (row), rstyle); |
1299 | scr_blank_screen_mem (ROW (row), rstyle); |
1291 | ROW (row).l = 0; |
|
|
1292 | scr_blank_line (drawn_buf [row], 0, ncol, ren); |
1300 | scr_blank_line (drawn_buf [row], 0, ncol, ren); |
1293 | } |
1301 | } |
1294 | } |
1302 | } |
1295 | |
1303 | |
1296 | #if ENABLE_FRILLS |
1304 | #if ENABLE_FRILLS |
… | |
… | |
2182 | * Determine the attributes for the string |
2190 | * Determine the attributes for the string |
2183 | */ |
2191 | */ |
2184 | int fore = GET_FGCOLOR (rend); // desired foreground |
2192 | int fore = GET_FGCOLOR (rend); // desired foreground |
2185 | int back = GET_BGCOLOR (rend); // desired background |
2193 | int back = GET_BGCOLOR (rend); // desired background |
2186 | |
2194 | |
2187 | // only do special processing if any attributes are set, which is rare |
2195 | // only do special processing if any attributes are set, which is unlikely |
2188 | if (rend & (RS_Bold | RS_Italic | RS_Uline | RS_RVid | RS_Blink | RS_Careful)) |
2196 | if (rend & (RS_Bold | RS_Italic | RS_Uline | RS_RVid | RS_Blink | RS_Careful)) |
2189 | { |
2197 | { |
2190 | #if ENABLE_STYLES |
2198 | #if ENABLE_STYLES |
2191 | // force redraw after "careful" characters to avoid pixel droppings |
2199 | // force redraw after "careful" characters to avoid pixel droppings |
2192 | if (srp[col] & RS_Careful && col < ncol - 1 && 0) |
2200 | if (srp[col] & RS_Careful && col < ncol - 1 && 0) |
… | |
… | |
2440 | |
2448 | |
2441 | #if ENABLE_FRILLS |
2449 | #if ENABLE_FRILLS |
2442 | if (selection.rect) |
2450 | if (selection.rect) |
2443 | { |
2451 | { |
2444 | for (row = max (selection.beg.row, -view_start); row <= min (selection.end.row, view_end); row++) |
2452 | for (row = max (selection.beg.row, -view_start); row <= min (selection.end.row, view_end); row++) |
|
|
2453 | { |
|
|
2454 | text_t *stp = ROW(row).t; |
|
|
2455 | rend_t *srp = ROW(row).r; |
|
|
2456 | |
2445 | for (rend_t *srp = ROW(row).r, col = selection.beg.col; col < selection.end.col; col++) |
2457 | for (col = selection.beg.col; col < selection.end.col; col++) |
2446 | srp[col] ^= RS_RVid; |
2458 | srp[col] ^= RS_RVid; |
|
|
2459 | |
|
|
2460 | while (col-- > selection.beg.col && (stp[col] == NOCHAR || unicode::is_space (stp[col]))) |
|
|
2461 | srp[col] ^= RS_RVid | RS_Uline; |
|
|
2462 | } |
2447 | } |
2463 | } |
2448 | else |
2464 | else |
2449 | #endif |
2465 | #endif |
2450 | { |
2466 | { |
2451 | if (selection.beg.row >= -view_start) |
2467 | if (selection.beg.row >= -view_start) |
… | |
… | |
2454 | row = selection.beg.row; |
2470 | row = selection.beg.row; |
2455 | } |
2471 | } |
2456 | else |
2472 | else |
2457 | { |
2473 | { |
2458 | col = 0; |
2474 | col = 0; |
2459 | row = view_start; |
2475 | row = -view_start; |
2460 | } |
2476 | } |
2461 | |
2477 | |
2462 | for (; row < min (selection.end.row, view_end); row++, col = 0) |
2478 | for (; row < min (selection.end.row, view_end); row++, col = 0) |
2463 | for (rend_t *srp = ROW(row).r; col < ncol; col++) |
2479 | for (rend_t *srp = ROW(row).r; col < ncol; col++) |
2464 | srp[col] ^= RS_RVid; |
2480 | srp[col] ^= RS_RVid; |
… | |
… | |
2878 | #endif |
2894 | #endif |
2879 | end_col = ROW(row).is_longer () ? ncol : ROW(row).l; //TODO//FIXME//LEN |
2895 | end_col = ROW(row).is_longer () ? ncol : ROW(row).l; //TODO//FIXME//LEN |
2880 | |
2896 | |
2881 | col = max (col, 0); |
2897 | col = max (col, 0); |
2882 | |
2898 | |
2883 | if (row == selection.end.row || selection.rect) |
2899 | if (row == selection.end.row |
|
|
2900 | #if ENABLE_FRILLS |
|
|
2901 | || selection.rect |
|
|
2902 | #endif |
|
|
2903 | ) |
2884 | end_col = min (end_col, selection.end.col); |
2904 | min_it (end_col, selection.end.col); |
2885 | |
2905 | |
2886 | t = ROW(row).t + col; |
2906 | t = ROW(row).t + col; |
2887 | for (; col < end_col; col++) |
2907 | for (; col < end_col; col++) |
2888 | { |
2908 | { |
2889 | if (*t == NOCHAR) |
2909 | if (*t == NOCHAR) |
… | |
… | |
2907 | #endif |
2927 | #endif |
2908 | else |
2928 | else |
2909 | new_selection_text[ofs++] = *t++; |
2929 | new_selection_text[ofs++] = *t++; |
2910 | } |
2930 | } |
2911 | |
2931 | |
|
|
2932 | #if ENABLE_FRILLS |
|
|
2933 | if (selection.rect) |
|
|
2934 | { |
|
|
2935 | while (ofs |
|
|
2936 | && new_selection_text[ofs - 1] != C0_LF |
|
|
2937 | && unicode::is_space (new_selection_text[ofs - 1])) |
|
|
2938 | --ofs; |
|
|
2939 | |
|
|
2940 | new_selection_text[ofs++] = C0_LF; |
|
|
2941 | } |
|
|
2942 | else |
|
|
2943 | #endif |
2912 | if (!ROW(row).is_longer () && row != selection.end.row) |
2944 | if (!ROW(row).is_longer () && row != selection.end.row) |
2913 | new_selection_text[ofs++] = C0_LF; |
2945 | new_selection_text[ofs++] = C0_LF; |
2914 | } |
2946 | } |
2915 | |
2947 | |
2916 | if (end_col != selection.end.col) |
2948 | if (end_col != selection.end.col) |
2917 | new_selection_text[ofs++] = C0_LF; |
2949 | new_selection_text[ofs++] = C0_LF; |
2918 | |
2950 | |
… | |
… | |
3340 | { |
3372 | { |
3341 | stp = ROW(end_row).t; |
3373 | stp = ROW(end_row).t; |
3342 | |
3374 | |
3343 | while (--end_col >= 0) |
3375 | while (--end_col >= 0) |
3344 | { |
3376 | { |
3345 | if (stp[end_col] != ' ' |
3377 | if (stp[end_col] != NOCHAR |
3346 | && stp[end_col] != '\t' |
3378 | && !unicode::is_space (stp[end_col])) |
3347 | && stp[end_col] != NOCHAR) |
|
|
3348 | break; |
3379 | break; |
3349 | } |
3380 | } |
3350 | |
3381 | |
3351 | if (end_col >= 0 |
3382 | if (end_col >= 0 |
3352 | || !ROW(end_row - 1).is_longer ()) |
3383 | || !ROW(end_row - 1).is_longer ()) |
… | |
… | |
3668 | for (int y = ov_h; y--; ) |
3699 | for (int y = ov_h; y--; ) |
3669 | { |
3700 | { |
3670 | text_t *t1 = ov_text[y]; |
3701 | text_t *t1 = ov_text[y]; |
3671 | rend_t *r1 = ov_rend[y]; |
3702 | rend_t *r1 = ov_rend[y]; |
3672 | |
3703 | |
3673 | text_t *t2 = ROW(y - view_start).t + ov_x; |
3704 | text_t *t2 = ROW(y + ov_y - view_start).t + ov_x; |
3674 | rend_t *r2 = ROW(y - view_start).r + ov_x; |
3705 | rend_t *r2 = ROW(y + ov_y - view_start).r + ov_x; |
3675 | |
3706 | |
3676 | for (int x = ov_w; x--; ) |
3707 | for (int x = ov_w; x--; ) |
3677 | { |
3708 | { |
3678 | text_t t = *t1; *t1++ = *t2; *t2++ = t; |
3709 | text_t t = *t1; *t1++ = *t2; *t2++ = t; |
3679 | rend_t r = *r1; *r1++ = *r2; *r2++ = SET_FONT (r, FONTSET (r)->find_font (t)); |
3710 | rend_t r = *r1; *r1++ = *r2; *r2++ = SET_FONT (r, FONTSET (r)->find_font (t)); |