… | |
… | |
400 | } |
400 | } |
401 | |
401 | |
402 | free (tabs); |
402 | free (tabs); |
403 | tabs = (char *)rxvt_malloc (ncol); |
403 | tabs = (char *)rxvt_malloc (ncol); |
404 | |
404 | |
405 | for (int col = ncol; --col; ) |
405 | for (int col = ncol; col--; ) |
406 | tabs [col] = col % TABSIZE == 0; |
406 | tabs [col] = col % TABSIZE == 0; |
407 | |
407 | |
408 | CLEAR_ALL_SELECTION (); |
408 | CLEAR_ALL_SELECTION (); |
409 | |
409 | |
410 | prev_nrow = nrow; |
410 | prev_nrow = nrow; |
… | |
… | |
3091 | |
3091 | |
3092 | new_selection_text[ofs++] = C0_LF; |
3092 | new_selection_text[ofs++] = C0_LF; |
3093 | } |
3093 | } |
3094 | else |
3094 | else |
3095 | #endif |
3095 | #endif |
3096 | if (!ROW(row).is_longer () && row != selection.end.row |
3096 | if (!ROW(row).is_longer () |
|
|
3097 | && (row != selection.end.row || end_col != selection.end.col) |
3097 | && (row != selection.beg.row || selection.beg.col < ncol)) |
3098 | && (row != selection.beg.row || selection.beg.col < ncol)) |
3098 | new_selection_text[ofs++] = C0_LF; |
3099 | new_selection_text[ofs++] = C0_LF; |
3099 | } |
3100 | } |
3100 | |
|
|
3101 | if (end_col != selection.end.col) |
|
|
3102 | new_selection_text[ofs++] = C0_LF; |
|
|
3103 | |
3101 | |
3104 | new_selection_text[ofs] = 0; |
3102 | new_selection_text[ofs] = 0; |
3105 | |
3103 | |
3106 | if (ofs == 0) |
3104 | if (ofs == 0) |
3107 | { |
3105 | { |