WISH: OnTheSpot editing, or maybe switch to miiiiiiif
WISH: just for fun, do shade and tint with XRender.
+6.1
+ - fix a crash when the selection scrolls out of the scrollback
+ while the user still drags.
+
6.0 Sat Dec 24 13:58:56 CET 2005
- make it compile without SMART_RESIZE again.
- enable slow link support by default.
selection.end.row -= count;
selection.mark.row -= count;
- selection_check (0);
+ if (selection.beg.row < -nsaved
+ || selection.end.row < -nsaved
+ || selection.mark.row < -nsaved)
+ {
+ CLEAR_ALL_SELECTION ();
+ selection.op = SELECTION_CLEAR;
+ }
}
for (int i = count; i--; )
{
if (selection.op && current_screen == selection.screen)
{
- int i = selection.beg.row;
- int j = selection.end.row;
-
- if ((i < row1 && j > row1)
- || (i < row2 && j > row2)
- || (i - count < row1 && i >= row1)
- || (i - count > row2 && i <= row2)
- || (j - count < row1 && j >= row1)
- || (j - count > row2 && j <= row2))
+ if ((selection.beg.row < row1 && selection.end.row > row1)
+ || (selection.beg.row < row2 && selection.end.row > row2)
+ || (selection.beg.row - count < row1 && selection.beg.row >= row1)
+ || (selection.beg.row - count > row2 && selection.beg.row <= row2)
+ || (selection.end.row - count < row1 && selection.end.row >= row1)
+ || (selection.end.row - count > row2 && selection.end.row <= row2))
{
CLEAR_ALL_SELECTION ();
- selection.op = SELECTION_CLEAR; /* XXX: too aggressive? */
+ selection.op = SELECTION_CLEAR;
}
- else if (j >= row1 && j <= row2)
+ else if (selection.end.row >= row1 && selection.end.row <= row2)
{
/* move selected region too */
selection.beg.row -= count;