]> git.eshelyaron.com Git - emacs.git/commitdiff
(try_window_id): Fix a case where window_end_pos
authorGerd Moellmann <gerd@gnu.org>
Wed, 25 Apr 2001 14:15:21 +0000 (14:15 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 25 Apr 2001 14:15:21 +0000 (14:15 +0000)
and window_end_bytepos were not adjusted.

src/ChangeLog
src/xdisp.c

index dcd4dd19738f89c0fbdd105984491e8b1a0de456..e1820b93b22a539c37a5ecffbe90d96ee1145269 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-25  Gerd Moellmann  <gerd@gnu.org>
+
+       * xdisp.c (try_window_id): Fix a case where window_end_pos
+       and window_end_bytepos were not adjusted.
+
 2001-04-23  Gerd Moellmann  <gerd@gnu.org>
 
        * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
index 90a35eedafdac017e5ad15926087fb3f34ab7d9f..5fc7c5de47cd7f968c9776ad1f18c1361f64d2aa 100644 (file)
@@ -11622,6 +11622,9 @@ try_window_id (w)
          break;
 
       w->window_end_vpos = make_number (vpos);
+      row = MATRIX_ROW (w->desired_matrix, vpos);
+      w->window_end_pos = make_number (Z - MATRIX_ROW_END_CHARPOS (row));
+      w->window_end_bytepos = Z_BYTE - MATRIX_ROW_END_BYTEPOS (row);
     }
   else
     abort ();