]> code.delx.au - gnu-emacs/blobdiff - src/xdisp.c
(comint-prompt-regexp): Add defvar.
[gnu-emacs] / src / xdisp.c
index 83483039b5413d56d5718ba834a22e17ed4ef5b3..f81dfb6755a2a8189042c3fad714054b15c51b37 100644 (file)
@@ -1347,8 +1347,8 @@ pos_visible_p (w, charpos, x, y, rtop, rbot, exact_mode_line_heights_p)
 
   current_header_line_height = current_mode_line_height = -1;
 
-  if (visible_p && w->hscroll > 0)
-    *x -= w->hscroll;
+  if (visible_p && XFASTINT (w->hscroll) > 0)
+    *x -= XFASTINT (w->hscroll);
 
   return visible_p;
 }
@@ -7697,7 +7697,7 @@ resize_mini_window_1 (a1, exactly, a3, a4)
 /* Resize mini-window W to fit the size of its contents.  EXACT:P
    means size the window exactly to the size needed.  Otherwise, it's
    only enlarged until W's buffer is empty.
-   
+
    Set W->start to the right place to begin display.  If the whole
    contents fit, start at the beginning.  Otherwise, start so as
    to make the end of the contents appear.  This is particularly
@@ -7786,7 +7786,6 @@ resize_mini_window (w, exact_p)
          init_iterator (&it, w, ZV, ZV_BYTE, NULL, DEFAULT_FACE_ID);
          move_it_vertically_backward (&it, (height - 1) * unit);
          start = it.current.pos;
-         SET_PT_BOTH (CHARPOS (start), BYTEPOS (start));
        }
       else
        SET_TEXT_POS (start, BEGV, BEGV_BYTE);