1 | /*--------------------------------*-C-*---------------------------------* |
1 | /*--------------------------------*-C-*---------------------------------* |
2 | * File: command.c |
2 | * File: command.c |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * $Id: command.C,v 1.32 2004/01/29 23:31:45 pcg Exp $ |
4 | * $Id: command.C,v 1.33 2004/01/30 18:12:17 pcg Exp $ |
5 | * |
5 | * |
6 | * All portions of code are copyright by their respective author/s. |
6 | * All portions of code are copyright by their respective author/s. |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
7 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
8 | * - original version |
8 | * - original version |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
9 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
… | |
… | |
1474 | if ((ev->xmotion.time - R->MEvent.time) > MOUSE_THRESHOLD) { |
1474 | if ((ev->xmotion.time - R->MEvent.time) > MOUSE_THRESHOLD) { |
1475 | #endif |
1475 | #endif |
1476 | R->selection_extend ((ev->xbutton.x), (ev->xbutton.y), |
1476 | R->selection_extend ((ev->xbutton.x), (ev->xbutton.y), |
1477 | (ev->xbutton.state & Button3Mask) ? 2 : 0); |
1477 | (ev->xbutton.state & Button3Mask) ? 2 : 0); |
1478 | #ifdef SELECTION_SCROLLING |
1478 | #ifdef SELECTION_SCROLLING |
1479 | if (ev->xbutton.y<R->TermWin.int_bwidth || |
1479 | if (ev->xbutton.y < R->TermWin.int_bwidth |
1480 | Pixel2Row(ev->xbutton.y)>(R->TermWin.nrow-1)) { |
1480 | || Pixel2Row(ev->xbutton.y) > (R->TermWin.nrow-1)) { |
1481 | int dist; |
1481 | int dist; |
1482 | |
1482 | |
1483 | R->pending_scroll_selection=1; |
1483 | R->pending_scroll_selection=1; |
1484 | |
1484 | |
1485 | /* don't clobber the current delay if we are |
1485 | /* don't clobber the current delay if we are |