aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Rudalics2014-08-28 20:33:18 +0200
committerMartin Rudalics2014-08-28 20:33:18 +0200
commitcd19ba4c005a230b728469a5ac6e23285957ed67 (patch)
tree86361d91f9570e8d12578ad1adf630723acb9d2f /src
parentea652500776aacbb8cb64f9ecca16a2d2c7add80 (diff)
downloademacs-cd19ba4c005a230b728469a5ac6e23285957ed67.tar.gz
emacs-cd19ba4c005a230b728469a5ac6e23285957ed67.zip
Revert x_scroll_bar_handle_click "typo fix".
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/xterm.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 05c3c5cf65b..9b3c3d0bd66 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -55,8 +55,6 @@
55 bar broken in change from 2014-07-27. 55 bar broken in change from 2014-07-27.
56 (xaw_scroll_callback): Provide incremental scrolling with 56 (xaw_scroll_callback): Provide incremental scrolling with
57 horizontal scroll bars. 57 horizontal scroll bars.
58 (x_scroll_bar_handle_click): Fix typo introduced in change from
59 2014-07-27.
60 58
612014-08-28 Eli Zaretskii <eliz@gnu.org> 592014-08-28 Eli Zaretskii <eliz@gnu.org>
62 60
diff --git a/src/xterm.c b/src/xterm.c
index e4a725a4ab1..beb7d78841d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6184,7 +6184,7 @@ x_scroll_bar_handle_click (struct scroll_bar *bar,
6184 /* If the user has released the handle, set it to its final position. */ 6184 /* If the user has released the handle, set it to its final position. */
6185 if (event->type == ButtonRelease && bar->dragging != -1) 6185 if (event->type == ButtonRelease && bar->dragging != -1)
6186 { 6186 {
6187 int new_start = y - bar->dragging; 6187 int new_start = - bar->dragging;
6188 int new_end = new_start + bar->end - bar->start; 6188 int new_end = new_start + bar->end - bar->start;
6189 6189
6190 x_scroll_bar_set_handle (bar, new_start, new_end, 0); 6190 x_scroll_bar_set_handle (bar, new_start, new_end, 0);