]> git.eshelyaron.com Git - emacs.git/commitdiff
(buffer_posn_from_coords): New arg to compute_motion.
authorKarl Heuer <kwzh@gnu.org>
Thu, 18 May 1995 22:26:36 +0000 (22:26 +0000)
committerKarl Heuer <kwzh@gnu.org>
Thu, 18 May 1995 22:26:36 +0000 (22:26 +0000)
src/dispnew.c

index a01abacadcc569713d002ac8915a1adc4dfa3095..206cdb8966170608bd23678f71b1987126a97128 100644 (file)
@@ -1509,9 +1509,10 @@ buffer_posn_from_coords (window, col, line)
      the window, but it isn't maintained correctly, and I'm not even
      sure I will keep it.  */
   posn = compute_motion (startp, 0,
-                        (window == XWINDOW (minibuf_window) && startp == 1
-                         ? minibuf_prompt_width : 0)
-                        + (hscroll ? 1 - hscroll : 0),
+                        ((window == XWINDOW (minibuf_window) && startp == BEG
+                          ? minibuf_prompt_width : 0)
+                         + (hscroll ? 1 - hscroll : 0)),
+                        0,
                         ZV, line, col,
                         window_width, hscroll, 0, window);