]> git.eshelyaron.com Git - emacs.git/commitdiff
(try_window_id): Stop scan at bottom of window, not one line later.
authorKarl Heuer <kwzh@gnu.org>
Fri, 24 Mar 1995 03:16:19 +0000 (03:16 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 24 Mar 1995 03:16:19 +0000 (03:16 +0000)
Don't fail on account of continuation line below window.
(redisplay_window): Stop scan at bottom of window.
Fix reversed condition.

src/xdisp.c

index 7c6c2d8b54d7513e38cab08aacbf5f1bbc191912..fd08f443c0fead1f7db12d51accf069427ee5854 100644 (file)
@@ -1433,7 +1433,7 @@ redisplay_window (window, just_this_one)
       /* If force-mode-line-update was called, really redisplay;
         that's how redisplay is forced after e.g. changing
         buffer-invisibility-spec.  */
-      && NILP (w->update_mode_line)
+      && NILP (w->update_mode_line)
       /* Can't use this case if highlighting a region.  */
       && !(!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active))
       && NILP (w->region_showing)
@@ -1443,7 +1443,7 @@ redisplay_window (window, just_this_one)
       && !EQ (window, minibuf_window))
     {
       pos = *compute_motion (startp, 0, (hscroll ? 1 - hscroll : 0),
-                           PT, height + 1, 10000, width, hscroll,
+                           PT, height0, width, hscroll,
                            pos_tab_offset (w, startp), w);
 
       if (pos.vpos < height)
@@ -1755,11 +1755,11 @@ try_window_id (window)
 
   /* Find position before which nothing is changed.  */
   bp = *compute_motion (start, 0, lmargin,
-                       min (ZV, beg_unchanged + BEG), height + 1, 0,
+                       min (ZV, beg_unchanged + BEG), height, 0,
                        width, hscroll, pos_tab_offset (w, start), w);
   if (bp.vpos >= height)
     {
-      if (PT < bp.bufpos && !bp.contin)
+      if (PT < bp.bufpos)
        {
          /* All changes are below the frame, and point is on the frame.
             We don't need to change the frame at all.