]> git.eshelyaron.com Git - emacs.git/commitdiff
Undo change in xdisp.c in 2012-06-29T11:48:08Z!dmantipov@yandex.ru.
authorEli Zaretskii <eliz@gnu.org>
Fri, 29 Jun 2012 18:52:54 +0000 (21:52 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 29 Jun 2012 18:52:54 +0000 (21:52 +0300)
 src/xdisp.c (try_window_id): Undo last change.  'int' is wide
 enough to hold vertical pixel positions on screen.

src/ChangeLog
src/xdisp.c

index a75ed5cbc37ec88aaa27d4422e9ab61abceb2f4f..4f3c229481e8089a8a4e97b7077d6417989ec039 100644 (file)
@@ -1,5 +1,7 @@
 2012-06-29  Eli Zaretskii  <eliz@gnu.org>
 
+       * xdisp.c (try_window_id): Undo last change.
+
        * w32.c (getwd): Adjust commentary about startup_dir.
        (init_environment): Always call sys_access, even in non-MSVC
        builds.  Don't chdir to the directory of the Emacs executable.
index 0b1012990d32f00cb1a57628acfe02f02c58f9a0..ae06355ac605f8334f5af8205be1029fab003f86 100644 (file)
@@ -17761,8 +17761,8 @@ try_window_id (struct window *w)
     {
       /* Displayed to end of window, but no line containing text was
         displayed.  Lines were deleted at the end of the window.  */
-      ptrdiff_t first_vpos = WINDOW_WANTS_HEADER_LINE_P (w) ? 1 : 0;
-      ptrdiff_t vpos = XFASTINT (w->window_end_vpos);
+      int first_vpos = WINDOW_WANTS_HEADER_LINE_P (w) ? 1 : 0;
+      int vpos = XFASTINT (w->window_end_vpos);
       struct glyph_row *current_row = current_matrix->rows + vpos;
       struct glyph_row *desired_row = desired_matrix->rows + vpos;