Mercurial > emacs
changeset 5885:b649c51e3f6b
(buffer_posn_from_coords): Take hscroll into account.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 10 Feb 1994 23:59:25 +0000 |
parents | d02095ea13a5 |
children | 08286e54ad0e |
files | src/dispnew.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dispnew.c Thu Feb 10 20:50:54 1994 +0000 +++ b/src/dispnew.c Thu Feb 10 23:59:25 1994 +0000 @@ -1254,6 +1254,7 @@ struct window *window; int col, line; { + int hscroll = XINT (window->hscroll); int window_left = XFASTINT (window->left); /* The actual width of the window is window->width less one for the @@ -1276,9 +1277,10 @@ sure I will keep it. */ posn = compute_motion (startp, 0, (window == XWINDOW (minibuf_window) && startp == 1 - ? minibuf_prompt_width : 0), + ? minibuf_prompt_width : 0) + + (hscroll ? 1 - hscroll : 0), ZV, line, col, - window_width, XINT (window->hscroll), 0); + window_width, hscroll, 0); current_buffer = old_current_buffer;