… | |
… | |
3041 | { |
3041 | { |
3042 | #if !ENABLE_MINIMAL |
3042 | #if !ENABLE_MINIMAL |
3043 | if (selection.rect) |
3043 | if (selection.rect) |
3044 | { |
3044 | { |
3045 | col = selection.beg.col; |
3045 | col = selection.beg.col; |
3046 | end_col = ncol + 1; |
3046 | end_col = selection.end.col; |
3047 | } |
3047 | } |
3048 | else |
3048 | else |
3049 | #endif |
3049 | #endif |
3050 | end_col = ROW(row).l; |
3050 | end_col = ROW(row).l; |
3051 | |
3051 | |
3052 | col = max (col, 0); |
3052 | col = max (col, 0); |
3053 | |
3053 | |
3054 | if (row == selection.end.row |
3054 | if (row == selection.end.row) |
3055 | #if !ENABLE_MINIMAL |
|
|
3056 | || selection.rect |
|
|
3057 | #endif |
|
|
3058 | ) |
|
|
3059 | min_it (end_col, selection.end.col); |
3055 | min_it (end_col, selection.end.col); |
3060 | |
3056 | |
3061 | t = ROW(row).t + col; |
3057 | t = ROW(row).t + col; |
3062 | |
3058 | |
3063 | for (; col < end_col; col++) |
3059 | for (; col < end_col; col++) |
… | |
… | |
3095 | |
3091 | |
3096 | new_selection_text[ofs++] = C0_LF; |
3092 | new_selection_text[ofs++] = C0_LF; |
3097 | } |
3093 | } |
3098 | else |
3094 | else |
3099 | #endif |
3095 | #endif |
3100 | if (!ROW(row).is_longer () && row != selection.end.row) |
3096 | if (!ROW(row).is_longer () && row != selection.end.row |
|
|
3097 | && (row != selection.beg.row || selection.beg.col < ncol)) |
3101 | new_selection_text[ofs++] = C0_LF; |
3098 | new_selection_text[ofs++] = C0_LF; |
3102 | } |
3099 | } |
3103 | |
3100 | |
3104 | if (end_col != selection.end.col) |
3101 | if (end_col != selection.end.col) |
3105 | new_selection_text[ofs++] = C0_LF; |
3102 | new_selection_text[ofs++] = C0_LF; |