diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/dispnew.c | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index acd7e729254..25f3264198d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2015-01-08 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * dispnew.c (buffer_posn_from_coords): Fix the value of the column | ||
| 4 | returned for right-to-left screen lines. (Before the change on | ||
| 5 | 2014-12-30, the incorrectly-computed X pixel coordinate concealed | ||
| 6 | this bug.) | ||
| 7 | |||
| 1 | 2015-01-05 Eli Zaretskii <eliz@gnu.org> | 8 | 2015-01-05 Eli Zaretskii <eliz@gnu.org> |
| 2 | 9 | ||
| 3 | * xdisp.c (move_it_to, try_cursor_movement): Don't use the window | 10 | * xdisp.c (move_it_to, try_cursor_movement): Don't use the window |
diff --git a/src/dispnew.c b/src/dispnew.c index 205c28f7df8..f73ea58b7f3 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -5153,7 +5153,7 @@ buffer_posn_from_coords (struct window *w, int *x, int *y, struct display_pos *p | |||
| 5153 | 5153 | ||
| 5154 | Fset_buffer (old_current_buffer); | 5154 | Fset_buffer (old_current_buffer); |
| 5155 | 5155 | ||
| 5156 | *dx = x0 + it.first_visible_x - it.current_x; | 5156 | *dx = to_x - it.current_x; |
| 5157 | *dy = *y - it.current_y; | 5157 | *dy = *y - it.current_y; |
| 5158 | 5158 | ||
| 5159 | string = w->contents; | 5159 | string = w->contents; |
| @@ -5228,9 +5228,9 @@ buffer_posn_from_coords (struct window *w, int *x, int *y, struct display_pos *p | |||
| 5228 | } | 5228 | } |
| 5229 | 5229 | ||
| 5230 | /* Add extra (default width) columns if clicked after EOL. */ | 5230 | /* Add extra (default width) columns if clicked after EOL. */ |
| 5231 | x1 = max (0, it.current_x + it.pixel_width - it.first_visible_x); | 5231 | x1 = max (0, it.current_x + it.pixel_width); |
| 5232 | if (x0 > x1) | 5232 | if (to_x > x1) |
| 5233 | it.hpos += (x0 - x1) / WINDOW_FRAME_COLUMN_WIDTH (w); | 5233 | it.hpos += (to_x - x1) / WINDOW_FRAME_COLUMN_WIDTH (w); |
| 5234 | 5234 | ||
| 5235 | *x = it.hpos; | 5235 | *x = it.hpos; |
| 5236 | *y = it.vpos; | 5236 | *y = it.vpos; |