… | |
… | |
234 | selection.text = NULL; |
234 | selection.text = NULL; |
235 | selection.len = 0; |
235 | selection.len = 0; |
236 | selection.op = SELECTION_CLEAR; |
236 | selection.op = SELECTION_CLEAR; |
237 | selection.screen = PRIMARY; |
237 | selection.screen = PRIMARY; |
238 | selection.clicks = 0; |
238 | selection.clicks = 0; |
239 | CLEAR_ALL_SELECTION (); |
|
|
240 | rvideo = 0; |
239 | rvideo = 0; |
241 | } |
240 | } |
242 | else |
241 | else |
243 | { |
242 | { |
244 | /* |
243 | /* |
… | |
… | |
348 | |
347 | |
349 | line_t &pline = old_buf [prow]; |
348 | line_t &pline = old_buf [prow]; |
350 | |
349 | |
351 | int len = min (min (prev_ncol - pcol, ncol - qcol), llen - lofs); |
350 | int len = min (min (prev_ncol - pcol, ncol - qcol), llen - lofs); |
352 | |
351 | |
|
|
352 | #if DEBUG_STRICT |
353 | assert (len); |
353 | assert (len); |
354 | assert (pline.t); |
354 | assert (pline.t); |
|
|
355 | #endif |
355 | |
356 | |
356 | memcpy (qline->t + qcol, pline.t + pcol, len * sizeof (text_t)); |
357 | memcpy (qline->t + qcol, pline.t + pcol, len * sizeof (text_t)); |
357 | memcpy (qline->r + qcol, pline.r + pcol, len * sizeof (rend_t)); |
358 | memcpy (qline->r + qcol, pline.r + pcol, len * sizeof (rend_t)); |
358 | |
359 | |
359 | lofs += len; |
360 | lofs += len; |
… | |
… | |
404 | |
405 | |
405 | if (tabs) |
406 | if (tabs) |
406 | free (tabs); |
407 | free (tabs); |
407 | } |
408 | } |
408 | |
409 | |
|
|
410 | CLEAR_ALL_SELECTION (); |
|
|
411 | |
409 | prev_nrow = nrow; |
412 | prev_nrow = nrow; |
410 | prev_ncol = ncol; |
413 | prev_ncol = ncol; |
411 | |
414 | |
412 | tabs = (char *)rxvt_malloc (ncol * sizeof (char)); |
415 | tabs = (char *)rxvt_malloc (ncol * sizeof (char)); |
413 | |
416 | |
… | |
… | |
459 | * Save and Restore cursor |
462 | * Save and Restore cursor |
460 | * XTERM_SEQ: Save cursor : ESC 7 |
463 | * XTERM_SEQ: Save cursor : ESC 7 |
461 | * XTERM_SEQ: Restore cursor: ESC 8 |
464 | * XTERM_SEQ: Restore cursor: ESC 8 |
462 | */ |
465 | */ |
463 | void |
466 | void |
464 | rxvt_term::scr_cursor (int mode) |
467 | rxvt_term::scr_cursor (cursor_mode mode) |
465 | { |
468 | { |
466 | screen_t *s; |
469 | screen_t *s; |
467 | |
470 | |
468 | #if NSCREENS && !defined(NO_SECONDARY_SCREEN_CURSOR) |
471 | #if NSCREENS && !defined(NO_SECONDARY_SCREEN_CURSOR) |
469 | if (current_screen == SECONDARY) |
472 | if (current_screen == SECONDARY) |