diff options
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index c7bfbae9e46..2f3d5ca7a01 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -5473,7 +5473,7 @@ x_scroll_bar_handle_click (struct scroll_bar *bar, XEvent *event, struct input_e | |||
| 5473 | /* If the user has released the handle, set it to its final position. */ | 5473 | /* If the user has released the handle, set it to its final position. */ |
| 5474 | if (event->type == ButtonRelease && bar->dragging != -1) | 5474 | if (event->type == ButtonRelease && bar->dragging != -1) |
| 5475 | { | 5475 | { |
| 5476 | int new_start = y - XINT (bar->dragging); | 5476 | int new_start = y - bar->dragging; |
| 5477 | int new_end = new_start + bar->end - bar->start; | 5477 | int new_end = new_start + bar->end - bar->start; |
| 5478 | 5478 | ||
| 5479 | x_scroll_bar_set_handle (bar, new_start, new_end, 0); | 5479 | x_scroll_bar_set_handle (bar, new_start, new_end, 0); |